/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --primary-color: #ff6347;
    --primary-dark: #e10e0e;
    --secondary-color: #0723ab;
    --dark-bg: #000000;
    --darker-bg: #050505;
    --light-bg: #1a1a1a;
    --card-bg: #141414;
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;
    --text-muted: #707070;
    --white: #ffffff;
    --black: #000000;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --font-main: 'Montserrat', sans-serif;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--darker-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* ========================================
   HEADER & NAVBAR
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo a img {
    height: 45px;
    transition: var(--transition-normal);
}

.logo a:hover img {
    transform: scale(1.05);
}

.menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.menu a:hover {
    color: var(--primary-color);
    background: rgba(255, 99, 71, 0.15);
    transform: translateY(-2px);
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    font-weight: 600 !important;
    margin-left: 10px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(235, 35, 0, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    margin: 4px 0;
    border-radius: 3px;
    transition: var(--transition-normal);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .menu.active {
        right: 0;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu a {
        display: block;
        padding: 15px 30px;
        font-size: 18px;
    }

    .contact-btn {
        margin: 20px 0;
    }

.menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 999;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========================================
   HERO / PORTADA
   ======================================== */
.portada {
    position: relative;
    height: 100vh;
    background-image: url('/media/img/portada_misterio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.portada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.356) 0%,
        rgba(0, 0, 0, 0.568) 50%,
        rgba(0, 0, 0, 0.842) 100%
    );
}

.portada::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
    opacity: 0.1;
}

.contenido {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contenido h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.contenido p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

/* Botón principal */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 99, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn:active {
    transform: translateY(-1px);
}

/* ========================================
   SECTIONS COMMON STYLES
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 30px auto;
    line-height: 1.8;
}

/* ========================================
   ABOUT US SECTION
   ======================================== */
.sobre-nosotros {
    background: var(--darker-bg);
}

.sobre-nosotros .contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.sobre-nosotros h2 {
    text-align: center;
    display: block;
}

.historia-valores {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.historia-valores:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.historia-valores h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.historia-valores p {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.equipo h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.grid-equipo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.miembro {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.miembro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.miembro:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.miembro:hover::before {
    transform: scaleX(1);
}

.miembro img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.miembro:hover img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.miembro h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.miembro p {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.miembro p:last-of-type {
    color: var(--text-light);
    font-weight: 400;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.servicios {
    background: var(--dark-bg);
}

.servicios .contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicios h2 {
    text-align: center;
    display: block;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.servicio {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.servicio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.servicio:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.servicio:hover::after {
    transform: scaleX(1);
}

.servicio img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    transition: var(--transition-normal);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.servicio:hover img {
    transform: scale(1.1) rotate(5deg);
}

.servicio h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.servicio p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-animado {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-animado::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 99, 71, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.contenido-cta {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-animado h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--white);
}

.cta-animado h2::after {
    display: none;
}

.cta-animado p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* ========================================
   CASOS DE ÉXITO
   ======================================== */
.casos-exito {
    background: var(--dark-bg);
}

.casos-exito .contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.casos-exito h2 {
    text-align: center;
    display: block;
}

.grid-casos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.caso {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-color);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.caso::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 80px;
    color: rgba(255, 99, 71, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.caso:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.caso h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.caso p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.caso .resultado {
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 15px;
    background: rgba(255, 99, 71, 0.1);
    border-radius: 6px;
    display: inline-block;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.preguntas-frecuentes {
    background: var(--darker-bg);
}

.preguntas-frecuentes .contenedor {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.preguntas-frecuentes h2 {
    text-align: center;
    display: block;
}

.grid-faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.faq-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 38px;
}

/* ========================================
   HERO SECTION (Blinking Spheres)
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-section .background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--black);
    z-index: 1;
}

.hero-section .background span {
    width: 25vmin;
    height: 25vmin;
    border-radius: 25vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: blink 1s infinite;
}

.hero-section .background span:nth-child(odd) {
    color: var(--primary-dark);
    animation-delay: 0.5s;
}

.hero-section .background span:nth-child(even) {
    color: var(--secondary-color);
}

.hero-section .background span:nth-child(0) { top: 13%; left: 23%; transform-origin: 11vw -22vh; box-shadow: 50vmin 0 6.86vmin currentColor; }
.hero-section .background span:nth-child(1) { top: 42%; left: 62%; transform-origin: -11vw -15vh; box-shadow: 50vmin 0 6.53vmin currentColor; }
.hero-section .background span:nth-child(2) { top: 52%; left: 46%; transform-origin: 19vw -19vh; box-shadow: -50vmin 0 6.38vmin currentColor; }
.hero-section .background span:nth-child(3) { top: 26%; left: 24%; transform-origin: -1vw 2vh; box-shadow: -50vmin 0 6.26vmin currentColor; }
.hero-section .background span:nth-child(4) { top: 33%; left: 2%; transform-origin: -17vw -19vh; box-shadow: -50vmin 0 6.88vmin currentColor; }
.hero-section .background span:nth-child(5) { top: 44%; left: 26%; transform-origin: -1vw 23vh; box-shadow: -50vmin 0 6.57vmin currentColor; }
.hero-section .background span:nth-child(6) { top: 61%; left: 78%; transform-origin: -5vw -8vh; box-shadow: 50vmin 0 6.87vmin currentColor; }
.hero-section .background span:nth-child(7) { top: 35%; left: 63%; transform-origin: 12vw 15vh; box-shadow: 50vmin 0 6.51vmin currentColor; }
.hero-section .background span:nth-child(8) { top: 22%; left: 16%; transform-origin: 8vw -20vh; box-shadow: -50vmin 0 6.81vmin currentColor; }
.hero-section .background span:nth-child(9) { top: 63%; left: 14%; transform-origin: -14vw -7vh; box-shadow: 50vmin 0 6.59vmin currentColor; }
.hero-section .background span:nth-child(10) { top: 74%; left: 62%; transform-origin: 14vw 20vh; box-shadow: 50vmin 0 6.69vmin currentColor; }
.hero-section .background span:nth-child(11) { top: 57%; left: 78%; transform-origin: -2vw -14vh; box-shadow: -50vmin 0 6.69vmin currentColor; }
.hero-section .background span:nth-child(12) { top: 85%; left: 81%; transform-origin: -13vw 2vh; box-shadow: -50vmin 0 7.06vmin currentColor; }
.hero-section .background span:nth-child(13) { top: 37%; left: 36%; transform-origin: -23vw -19vh; box-shadow: 50vmin 0 7.05vmin currentColor; }

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-section .content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-section h2::after {
    display: none;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-section .action-button {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 5px 20px rgba(255, 99, 71, 0.4);
}

.hero-section .action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.6);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contacto {
    background: var(--darker-bg);
}

.contacto .contenedor {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacto h2 {
    text-align: center;
    display: block;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-normal);
    background: var(--card-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 99, 71, 0.1);
    background: var(--light-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 10px;
}

.form-group input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.3);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 99, 71, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.6);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer a {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

footer a:hover::after {
    width: 100%;
}

/* ========================================
   ANIMATIONS ON SCROLL
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .navbar {
        padding: 0 15px;
    }

    .logo a img {
        height: 35px;
    }

    .intro {
        font-size: 1rem;
        padding: 0 15px;
    }

    .historia-valores {
        padding: 25px 20px;
    }

    .miembro,
    .servicio,
    .caso,
    .faq-item {
        padding: 25px 20px;
    }

    .hero-section .content {
        margin: 0 15px;
        padding: 30px 20px;
    }

    .formulario-contacto {
        gap: 20px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .contenido h1 {
        font-size: 1.8rem;
    }

    .contenido p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .grid-equipo,
    .grid-servicios,
    .grid-casos,
    .grid-faq {
        grid-template-columns: 1fr;
    }
}

