/* ==========================================
    CONTÁCTANOS — REDISEÑO
    Hoja de estilos complementaria a index.css.
    Cambia el lenguaje visual de esta página:
    hero dividido, redes en franja de píldoras,
    panel de contacto unificado y botón flotante
    de WhatsApp. El formulario mantiene toda su
    validación y accesibilidad.
   ========================================== */

:root {
    --azul-profundo: #002E86;
    --amarillo-vibrante: #FFD500;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --rojo-detalle: #dc2626;
    --verde-whatsapp: #25D366;
    --verde-whatsapp-oscuro: #128C7E;
    --verde-exito: #16a34a;
    --negro-texto: #1E293B;
    --gris-oscuro: #64748B;
    --font-titles: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-elegant: 0 10px 30px rgba(0, 46, 134, 0.08);
    --shadow-hover: 0 16px 40px rgba(0, 46, 134, 0.14);
    --radius-smooth: 12px;
    --radius-panel: 24px;
    --transition-clean: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
    ACCESIBILIDAD
   ========================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--amarillo-vibrante);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    background-color: var(--azul-profundo);
    color: var(--blanco);
    padding: 0.8rem 1.4rem;
    border-radius: 0 0 var(--radius-smooth) var(--radius-smooth);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================
    TÍTULOS DE SECCIÓN
   ========================================== */
.section-title {
    font-family: var(--font-titles);
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2rem);
    color: var(--azul-profundo);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--amarillo-vibrante);
    border-radius: 2px;
}

/* ==========================================
    BOTONES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-clean);
}

.btn-yellow {
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
}

.btn-yellow:hover {
    background-color: var(--blanco);
    color: var(--azul-profundo);
    transform: translateY(-2px);
}

.btn-blue {
    background-color: var(--azul-profundo);
    color: var(--blanco);
    border-radius: var(--radius-smooth);
}

.btn-blue:hover {
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--blanco);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--blanco);
    transform: translateY(-2px);
}

/* ==========================================
    HERO DIVIDIDO — foto + texto
   ========================================== */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--azul-profundo) 65%, #0c43ad 100%);
}

.hero-split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 160px 4rem 4rem 6%;
    color: var(--blanco);
}

.hero-eyebrow {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(255, 213, 0, 0.15);
    color: var(--amarillo-vibrante);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 213, 0, 0.4);
}

.hero-split-text h1 {
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
    line-height: 1.15;
}

.hero-split-text p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
    opacity: 0.9;
    max-width: 480px;
}

.hero-split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.hero-split-image {
    position: relative;
    overflow: hidden;
}

.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
}

.hero-split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 46, 134, 0.35), transparent 40%);
}

/* ==========================================
    "APÓYANOS"
   ========================================== */
.featured-section {
    padding: 4rem 0 2rem;
}

.featured-card {
    background-color: var(--blanco);
    border-radius: var(--radius-panel);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    margin-top: 2rem;
    border: 1px solid #f0f4f8;
    transition: var(--transition-clean);
    border-left: 6px solid var(--amarillo-vibrante);
}

.featured-card:hover {
    box-shadow: var(--shadow-hover);
}

.featured-content {
    padding: 2.5rem 3rem;
}

.featured-content .date {
    color: var(--azul-profundo);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.featured-content h3 {
    font-family: var(--font-titles);
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--azul-profundo);
    line-height: 1.3;
}

.featured-content p {
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.featured-content .hashtags {
    color: var(--azul-profundo);
    opacity: 0.7;
    font-size: 0.85rem;
}

.featured-content .btn {
    margin-top: 1rem;
}

/* ==========================================
    FRANJA DE REDES SOCIALES — píldoras horizontales
   ========================================== */
.social-strip {
    padding: 2.5rem 0;
    background-color: var(--gris-claro);
    margin-top: 3rem;
}

.social-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.social-strip-label {
    font-family: var(--font-titles);
    color: var(--azul-profundo);
    font-weight: 700;
    margin-right: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    background-color: var(--blanco);
    color: var(--negro-texto);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-clean);
}

.pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.pill-facebook:hover { color: #1877F2; }
.pill-instagram:hover { color: #C13584; }
.pill-tiktok:hover { color: #000000; }
.pill-youtube:hover { color: #FF0000; }
.pill-whatsapp:hover { color: var(--verde-whatsapp-oscuro); }

/* ==========================================
    PANEL DE CONTACTO UNIFICADO
   ========================================== */
.contacto-panel {
    padding: 4rem 0;
}

.contacto-panel-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background-color: var(--blanco);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-elegant);
    overflow: hidden;
    border: 1px solid #f0f4f8;
}

.contacto-panel-info {
    background: linear-gradient(160deg, var(--azul-profundo) 60%, #0c43ad 100%);
    color: var(--blanco);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-panel-info h2 {
    font-family: var(--font-titles);
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
    margin-bottom: 1rem;
    color: var(--amarillo-vibrante);
}

.contacto-panel-info p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.contacto-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.contacto-lista li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contacto-lista a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
}

.contacto-lista a:hover {
    text-decoration: underline;
}

.contacto-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-icon-whatsapp {
    background-color: var(--verde-whatsapp);
}

.contacto-panel-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contacto-panel-form label {
    font-weight: 600;
    color: var(--negro-texto);
    margin-bottom: 0.3rem;
    display: block;
}

.contacto-panel-form input,
.contacto-panel-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-smooth);
    border: 1.5px solid #e2e8f0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-clean);
}

.contacto-panel-form input:focus,
.contacto-panel-form textarea:focus {
    border-color: var(--azul-profundo);
}

.btn-submit {
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-clean);
}

.btn-submit:hover {
    background-color: var(--azul-profundo);
    color: var(--blanco);
}

/* ==========================================
    FORMULARIO — estados de validación
   ========================================== */
.form-group .error-msg {
    display: none;
    color: var(--rojo-detalle);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-group.is-invalid .error-msg {
    display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid textarea {
    border-color: var(--rojo-detalle);
}

.success-alert {
    display: none;
}

.success-alert.is-visible {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--verde-exito);
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-smooth);
    padding: 0.9rem 1.2rem;
    font-weight: 600;
}

/* ==========================================
    MAPA
   ========================================== */
.mapa-section {
    padding: 2rem 0 4rem;
}

.mapa-container {
    border-radius: var(--radius-panel);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    width: 100%;
    border: 1px solid #f0f4f8;
    line-height: 0;
}

.mapa-container iframe {
    display: block;
}

/* ==========================================
    BOTÓN FLOTANTE DE WHATSAPP
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-whatsapp);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 900;
    transition: var(--transition-clean);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    background-color: var(--verde-whatsapp-oscuro);
}

/* ==========================================
    RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-split-text {
        padding: 150px 6% 3rem;
        text-align: center;
        align-items: center;
    }

    .hero-split-actions {
        justify-content: center;
    }

    .hero-split-image img { min-height: 260px; }

    .contacto-panel-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-split-text { padding: 130px 6% 2.5rem; }
    .featured-content { padding: 2rem; }
    .contacto-panel-info,
    .contacto-panel-form { padding: 2rem; }
    .mapa-container iframe { height: 320px; }
}

@media (max-width: 480px) {
    .hero-split-text { padding: 120px 5% 2rem; }
    .mapa-container iframe { height: 260px; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; }
}
