/* =============================================
   ESTILOS GENERALES
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.contenedor-principal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =============================================
   HEADER
   ============================================= */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.header nav {
    display: flex;
    gap: 30px;
}

.header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header nav a:hover {
    opacity: 0.8;
}

/* =============================================
   CONTENIDO PRINCIPAL
   ============================================= */

.main-content {
    flex: 1;
    padding: 40px 20px;
}

.formulario-evento {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.formulario-evento h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

/* =============================================
   ALERTAS
   ============================================= */

.alerta {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.alerta-error {
    background-color: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
}

.alerta-error strong {
    display: block;
    margin-bottom: 10px;
}

.alerta-error ul {
    margin-left: 20px;
}

.alerta-error li {
    margin-bottom: 5px;
}

.alerta-exito {
    background-color: #f0fff4;
    border-color: #9ae6b4;
    color: #22543d;
}

/* =============================================
   FIELDSET Y GRUPOS DE FORMULARIO
   ============================================= */

fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background-color: #f9fafc;
}

legend {
    padding: 0 10px;
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

.grupo-formulario {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.grupo-formulario label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 14px;
}

.grupo-formulario input,
.grupo-formulario textarea,
.grupo-formulario select {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.grupo-formulario input:focus,
.grupo-formulario textarea:focus,
.grupo-formulario select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.grupo-formulario small {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* =============================================
   LAYOUT MULTICOL
   ============================================= */

.fila-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .fila-dos-columnas {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   INFORMACIÓN Y RESUMEN
   ============================================= */

.info-precios {
    background-color: #edf2f7;
    padding: 12px 15px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
    font-size: 14px;
    color: #4a5568;
}

.resumen-evento {
    background-color: #edf2f7;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 14px;
    color: #4a5568;
}

.resumen-evento p {
    margin: 5px 0;
}

/* =============================================
   TARIFAS DE PRECIOS
   ============================================= */

#contenedor-precios {
    margin-bottom: 20px;
}

.tarifa-precio {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: border-color 0.3s ease;
}

.tarifa-precio:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.tarifa-precio h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
}

.btn-eliminar-tarifa {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fc8181;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-eliminar-tarifa:hover {
    background-color: #f56565;
}

/* =============================================
   BOTONES
   ============================================= */

.grupo-botones {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
}

.btn-primario,
.btn-secundario,
.btn-cancelar {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primario {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-width: 200px;
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secundario {
    background-color: #e2e8f0;
    color: #4a5568;
    margin-top: 10px;
    width: 100%;
}

.btn-secundario:hover {
    background-color: #cbd5e0;
}

.btn-cancelar {
    background-color: #cbd5e0;
    color: #4a5568;
    min-width: auto;
}

.btn-cancelar:hover {
    background-color: #a0aec0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .header h1 {
        font-size: 20px;
    }

    .header nav {
        flex-direction: column;
        gap: 10px;
    }

    .formulario-evento {
        padding: 20px;
    }

    .main-content {
        padding: 20px;
    }

    fieldset {
        padding: 15px;
    }

    .grupo-botones {
        flex-direction: column;
    }

    .btn-primario {
        min-width: auto;
        width: 100%;
    }
}

/* =============================================
   ANIMACIONES
   ============================================= */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarifa-precio {
    animation: slideIn 0.3s ease;
}

.alerta {
    animation: slideIn 0.3s ease;
}
