/* ================================
   VARIABLES DE COLORES - MANUAL DE MARCA
   ================================ */
:root {
    --color-rojo: #C01300;
    --color-gris: #3F4644;
    --color-blanco: #FFFFFF;
    --color-negro: #000000;

    /* Sombras y efectos */
    --sombra-suave: 0 2px 10px rgba(63, 70, 68, 0.1);
    --sombra-hover: 0 4px 20px rgba(192, 19, 0, 0.2);

    /* Fuentes */
    --fuente-principal: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================
   RESET Y ESTILOS BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: var(--color-gris);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* ================================
   CONTENEDOR PRINCIPAL
   ================================ */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ================================
   SECCIÓN DE PERFIL
   ================================ */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-rojo);
    box-shadow: var(--sombra-suave);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--sombra-hover);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gris);
    margin-bottom: 8px;
}

.profile-tagline {
    font-size: 1.1rem;
    color: var(--color-rojo);
    font-weight: 600;
    margin-bottom: 0;
}

/* ================================
   SECCIÓN DE ENLACES
   ================================ */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 24px;
    background-color: var(--color-blanco);
    border: 2px solid var(--color-gris);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-gris);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
    opacity: 0;
    transform: translateY(20px);
}

.link-button.animate {
    animation: fadeInUp 0.5s ease-out forwards;
}

.link-button:hover {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    border-color: var(--color-rojo);
    transform: translateY(-3px);
    box-shadow: var(--sombra-hover);
}

.link-button .icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    transition: transform 0.3s ease;
}

.link-button:hover .icon {
    transform: scale(1.1);
}

/* ================================
   SECCIÓN DE FORMULARIO
   ================================ */
.form-section {
    background-color: var(--color-blanco);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--sombra-suave);
    margin-top: 20px;
    border: 2px solid var(--color-rojo);
    opacity: 0;
    transform: translateY(20px);
}

.form-section.animate {
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-title {
    font-size: 1.5rem;
    color: var(--color-gris);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-title::before {
    content: "📋 ";
}

/* Placeholder del formulario (remover cuando agregues el iframe) */
.form-placeholder {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed var(--color-rojo);
}

.form-placeholder p {
    font-size: 1.1rem;
    color: var(--color-gris);
    margin-bottom: 10px;
}

.form-instruction {
    font-size: 0.9rem;
    color: #999;
}

/* Estilos para el iframe de Google Forms */
iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    min-height: 800px;
}

/* ================================
   SECCIÓN DE REDES SOCIALES
   ================================ */
.social-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.social-title {
    font-size: 1.2rem;
    color: var(--color-gris);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-blanco);
    border-radius: 50%;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background-color: var(--color-rojo);
    border-color: var(--color-rojo);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--sombra-hover);
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
    /* Convierte los iconos a blanco al hover */
}

/* ================================
   CRÉDITOS
   ================================ */
.credits {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

.credits p {
    margin: 5px 0;
}

.slogan {
    color: var(--color-rojo);
    font-weight: 600;
    font-style: italic;
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-tagline {
        font-size: 1rem;
    }

    .link-button {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .form-section {
        padding: 20px;
    }

    .form-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .link-button {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .link-button .icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
}

/* ================================
   ACCESIBILIDAD
   ================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-rojo);
    outline-offset: 3px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.info-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--sombra-suave);
    border-top: 6px solid var(--color-rojo);
    transition: transform .3s ease, box-shadow .3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.info-card a {
    color: var(--color-rojo);
    font-weight: 600;
    text-decoration: none;
}

.form-section {
    background: linear-gradient(135deg,
            var(--color-rojo),
            #a30f00);
    color: white;
}

.form-title {
    color: white;
}

/* ================================
   HERO CON IMAGEN BANNER
================================ */

.hero {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    margin-bottom: 60px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 280px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay sutil para mejorar contraste */
.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.35));
}

.hero-content {
    padding: 32px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-slogan {
    font-size: 1.1rem;
    color: var(--color-rojo);
    font-weight: 600;
    margin-bottom: 24px;
}

/* CTA */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Habla con el equipo (default) */
.primary-cta {
    background: var(--color-rojo);
    color: white;
    border: 2px solid var(--color-rojo);
}

/* Súmate al movimiento (default) */
.secondary-cta {
    background: transparent;
    color: var(--color-rojo);
    border: 2px solid var(--color-rojo);
}

/* Hover: Habla con el equipo → estilo outline */
.primary-cta:hover {
    background: transparent;
    color: var(--color-rojo);
}

/* Hover: Súmate al movimiento → estilo sólido */
.secondary-cta:hover {
    background: var(--color-rojo);
    color: white;
}

.primary-cta:hover,
.secondary-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

.primary-cta:focus-visible,
.secondary-cta:focus-visible {
    outline: 3px solid var(--color-rojo);
    outline-offset: 4px;
}

@media (max-width: 480px) {
    .hero-image {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}

/* OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

/* CONTENEDOR DEL MODAL */
.modal {
    position: relative;
    padding: 0;
    margin: 0;
    background: transparent;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

/* CONTENEDOR INTERNO (NO APORTA ESTILO) */
.modal-white-content {
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* IMAGEN DEL AFICHE */
.pdf-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
}

/* BOTÓN CERRAR */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;

    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

/* DESKTOP: NO ESCALAR IMAGEN */
@media (min-width: 1024px) {
    .pdf-image {
        max-width: none;
        max-height: none;
    }
}

.pdf-iframe {
    width: 90vw;
    height: 90vh;
    border: none;
}

