/* Importación de fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Ubuntu:wght@400;600;700;800&display=swap');

:root { 
    /* Paleta TurismoAds - Identidad Final */
    --primary: #003146;     /* Azul Petróleo */
    --accent: #357e7a;      /* Verde Bosque */
    --bg: #F1F5F9;          
    --text-main: #0F172A;   
    --text-muted: #475569;  
    --input-border: #CBD5E1;
    
    /* Tipografías */
    --font-titles: 'Ubuntu', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-body); 
    /* Textura de Puntos */
    background-color: var(--bg);
    background: linear-gradient(120deg, #f1f5f9 0%, #afbccc 100%);
    color: var(--text-main); 
    line-height: 1.6; 
    padding: 20px;
}

.container { 
    max-width: 850px; 
    margin: 20px auto; 
    background: #fff; 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 20px 25px -5px rgba(0, 49, 70, 0.1); 
}

/* --- CABECERA --- */
.header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #E2E8F0;
}

.header-logo { height: 70px; width: auto; margin-bottom: 15px; }

.header-title { 
    font-family: var(--font-titles);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 12px; 
    font-size: 28px; 
    color: var(--primary); 
    letter-spacing: -0.5px;
}

.header-subtitle { 
    color: var(--text-muted); 
    font-weight: 400; 
    font-size: 15px; 
    max-width: 600px;
    margin-top: 8px;
}

/* --- ESTRUCTURA DE FORMULARIO --- */
h2 { 
    font-family: var(--font-titles);
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--accent); 
    margin: 35px 0 15px; 
    border-bottom: 1px solid #E2E8F0; 
    padding-bottom: 8px; 
    font-weight: 700; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-bottom: 20px; 
}

.input-group { margin-bottom: 15px; width: 100%; }

label { 
    display: block; 
    font-weight: 700; 
    margin-bottom: 8px; 
    font-size: 14px; 
    color: var(--text-main); 
}

.input-with-icon { position: relative; width: 100%; }

.input-with-icon i { 
    position: absolute; 
    left: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #94A3B8; 
    font-size: 18px; 
}

input { 
    font-family: var(--font-body);
    width: 100%; 
    padding: 14px 14px 14px 48px; 
    border: 2px solid var(--input-border); 
    border-radius: 12px; 
    font-size: 15px; 
    transition: all 0.2s ease;
    background: #FFF;
    color: var(--text-main);
}

input:focus { 
    border-color: var(--primary); 
    outline: none; 
    box-shadow: 0 0 0 4px rgba(0, 49, 70, 0.1); 
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    resize: vertical; /* Permite al usuario agrandarlo hacia abajo */
    transition: 0.2s;
}
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 49, 70, 0.1);
}

label small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: none;
    margin-left: 5px;
}

/* --- REPETIDOR DE INTEGRANTES --- */
.repeater-item { 
    background: #eef1f3; 
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    border-left: 4px solid var(--accent); 
    position: relative; 
    animation: slideIn 0.3s ease-out; 
}

.btn-remove { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    color: #EF4444; 
    cursor: pointer; 
    border: none; 
    background: #e2bebe; 
    border-radius: 50%; 
    width: 32px; 
    height: 32px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    transition: 0.2s;
}

.btn-remove:hover { transform: scale(1.1); background: #db9696; }

/* --- BOTONES --- */
.btn-add { 
    background: var(--accent); 
    color: white; 
    border: none; 
    padding: 14px 22px; 
    border-radius: 4px; /* Un poco más cuadrado según el estilo solicitado */
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 10px; 
    transition: all 0.3s; 
    box-shadow: 0 4px 10px rgba(81, 129, 113, 0.2);
}

.btn-add:hover { 
    background: var(--primary); 
    transform: translateY(-2px); 
}

.btn-submit { 
    font-family: var(--font-titles);
    background: var(--primary); 
    color: white; 
    width: 100%; 
    padding: 20px; 
    border: none; 
    border-radius: 6px; 
    font-size: 18px; 
    font-weight: 800; 
    cursor: pointer; 
    margin-top: 40px; 
    transition: all 0.3s; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    box-shadow: 0 10px 20px rgba(0, 49, 70, 0.2);
}

.btn-submit:hover { 
    background: #021a24; 
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 49, 70, 0.3);
}

@keyframes slideIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- RESPONSIVO --- */
@media (max-width: 640px) {
    .container { padding: 25px 20px; }
    .grid { grid-template-columns: 1fr; }
    .header-title { font-size: 22px; }
    .header-logo { height: 55px; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* --- ESTADOS Y ANIMACIONES --- */
.hidden-element {
    display: none;
    opacity: 0;
}

/* Animación de desaparición */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

/* Animación de aparición */
.fade-in {
    display: block !important;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); visibility: hidden; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DISEÑO DE ÉXITO --- */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    color: var(--accent); /* Tu verde #518171 */
    margin-bottom: 20px;
    display: block;
}

.success-content h2 {
    font-family: var(--font-titles);
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 15px;
    border: none; /* Quitamos la línea de los h2 normales */
}

.success-next-step {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-muted);
}

.btn-reset {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-reset:hover {
    background: #021a24;
}

/* --- ESTILOS PARA CHECKBOXES --- */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
}

.check-item {
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500 !important;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px 6px;
    border-radius: 4px;
    margin-bottom: 0px;
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.check-item:hover {
    background: #eef1f3; /* Un toque visual al pasar el mouse */
}

/* --- SELECTORES DE COLOR --- */
.color-picker-container {
    display: flex;
    gap: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    justify-content: center;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Estilizando el input de color nativo */
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Para Chrome, Safari y Edge (Webkit) */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Para Firefox */
input[type="color"]::-moz-color-swatch {
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}