/* ============================================
   DISEÑO PREMIUM RESPONSIVO - DRSANCHEZ.VIP
   ============================================ */

:root {
    --primary: #0f172a;
    --secondary: #c9302c;
    --accent: #d4af37;
    --light: #f9fafb;
    --dark: #1a1a1a;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 0.8rem;
}

h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    text-align: center;
}

/* NAVEGACIÓN */
.navbar {
    background: white;
    color: var(--primary);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.navbar-brand img {
    height: clamp(70px, 12vw, 100px);
    width: clamp(70px, 12vw, 100px);
    border-radius: 0;
    padding: 0;
    background: transparent;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-menu a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a52 100%);
    color: white;
    padding: clamp(2rem, 8vh, 5rem) 0;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Red neuronal de fondo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 48, 44, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    animation: neural-pulse 8s ease-in-out infinite;
    z-index: 1;
}

/* Líneas de conexión neuronal */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.05) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(201, 48, 44, 0.05) 50%, transparent 60%);
    animation: neural-flow 12s linear infinite;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

@keyframes text-glow {
    0%, 100% {
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 0px;
    }
    50% {
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 1px;
    }
}

.hero-text h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    animation: fadeInUp 0.7s ease-out 0.5s both;
}

.description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease-out 0.9s both;
}

@keyframes pulse-tech {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.btn {
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
    border: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    animation: pulse-tech 2s ease-in-out infinite 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #a82a24;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(201, 48, 44, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-compra {
    background: var(--accent);
    color: var(--primary);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    padding: clamp(0.6rem, 1.5vw, 0.9rem) clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-compra:hover {
    background: #c9a825;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-compra:active {
    transform: translateY(0);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    animation: fadeInScale 0.9s ease-out 0.4s both;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f0f0f0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    animation: frameGlow 1s ease-out 0.4s both;
}

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

/* Elementos decorativos tecnológicos - en el fondo */
.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: neural-grid 20s linear infinite;
    z-index: 0;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(201, 48, 44, 0.1) 0%, transparent 40%);
    animation: neural-glow 6s ease-in-out infinite;
    z-index: 1;
}

/* Líneas tecnológicas alrededor - animación neuronal */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.4) 25%,
        rgba(212, 175, 55, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 75%,
        transparent 100%);
    animation: neural-line-flow 6s ease-in-out infinite;
    opacity: 0.7;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 48, 44, 0.4) 25%,
        rgba(201, 48, 44, 0.6) 50%,
        rgba(201, 48, 44, 0.4) 75%,
        transparent 100%);
    animation: neural-line-flow-reverse 6s ease-in-out infinite;
    opacity: 0.7;
}

/* Punto central decorativo */
.hero-text {
    position: relative;
}

/* Corner decorativo derecho */
.hero-image-frame {
    position: relative;
}

/* Animaciones tecnológicas */

/* Entrada suave del hero */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes frameGlow {
    from {
        opacity: 0;
        box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.1), var(--shadow-lg);
        border-color: rgba(212, 175, 55, 0.15);
    }
    to {
        opacity: 1;
        box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05), var(--shadow-lg);
        border-color: rgba(212, 175, 55, 0.3);
    }
}

/* Efecto brillo pulsante */
@keyframes glow-pulse {
    0%, 100% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0);
    }
}

@keyframes glow-expand {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

@keyframes scan-line {
    0% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

@keyframes scan-line-reverse {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image-container {
        min-height: 300px;
    }

    .hero-image-container::before,
    .hero-image-container::after {
        display: none;
    }
}

/* SERVICIOS */
.servicios {
    padding: clamp(3rem, 8vh, 5rem) 0;
    background: var(--light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 3vw, 2.5rem);
    margin-top: 3rem;
}

.servicio-card {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.servicio-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.servicio-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.8rem;
}

.servicio-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.precio {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.servicio-card .btn-compra {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* GALERÍA */
.galeria {
    padding: clamp(3rem, 8vh, 5rem) 0;
}

/* Carrusel */
.carrusel-container {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: 3rem;
    position: relative;
}

.carrusel {
    flex: 1;
    display: flex;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carrusel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: #e5e7eb;
}

.carrusel-item.active {
    opacity: 1;
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrusel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carrusel-item:hover .carrusel-overlay {
    opacity: 1;
}

.carrusel-overlay p {
    color: white;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-align: center;
    font-weight: 600;
}

.carrusel-btn {
    background: var(--secondary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carrusel-btn:hover {
    background: #a82a24;
    transform: scale(1.1);
}

.carrusel-btn:active {
    transform: scale(0.95);
}

.carrusel-dots {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent);
}

/* Grid antiguo para compatibilidad */
.galeria-grid {
    display: none;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay p {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    text-align: center;
}

/* TESTIMONIOS */
.testimonios {
    padding: clamp(3rem, 8vh, 5rem) 0;
    background: var(--light);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 3vw, 2.5rem);
    margin-top: 3rem;
}

.testimonio-card {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}

.star {
    color: var(--accent);
    font-size: 1.3rem;
}

.testimonio-texto {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonio-autor {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

/* ABOUT */
.about {
    padding: clamp(3rem, 8vh, 5rem) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.about-text strong {
    color: var(--primary);
}

.mision-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.mision, .vision {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow);
}

.mision h3, .vision h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.mision p, .vision p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .mision-vision {
        grid-template-columns: 1fr;
    }
}

/* CONTACTO */
.contacto {
    padding: clamp(3rem, 8vh, 5rem) 0;
    background: var(--light);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: 3rem;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.info-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.info-item:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.info-icon {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.phone-icon {
    background: linear-gradient(135deg, #d4af37, #c9302c);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.email-icon {
    background: linear-gradient(135deg, #EA4335, #c5221f);
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
}

.location-icon {
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.info-icon::before {
    font-weight: 700;
    color: white;
}

.whatsapp-icon::before {
    content: "💬";
}

.phone-icon::before {
    content: "☎️";
}

.email-icon::before {
    content: "✉️";
}

.location-icon::before {
    content: "📍";
}

.info-item:hover .info-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.info-item h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-item a, .info-item p {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.info-item a:hover {
    text-decoration: underline;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    padding: clamp(0.8rem, 2vw, 1rem);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 48, 44, 0.1);
}

.contacto-form small {
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

@media (max-width: 768px) {
    .contacto-content {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: white;
    padding: clamp(2rem, 4vh, 3rem) 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0);
    }
}

@keyframes glow-expand {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

@keyframes scan-line {
    0% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

@keyframes scan-line-reverse {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
}

@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes border-glow {
    0%, 100% {
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
    50% {
        border-color: rgba(212, 175, 55, 0.8);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
    }
}

@keyframes sweep-light {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmer-down {
    0% {
        top: -100%;
        opacity: 0;
    }
    20%, 80% {
        opacity: 0.4;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 48, 44, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(201, 48, 44, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 48, 44, 0);
    }
}

/* Red neuronal - animaciones de fondo */
@keyframes neural-pulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.02);
    }
}

@keyframes neural-flow {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(150%);
        opacity: 0;
    }
}

@keyframes neural-grid {
    0% {
        transform: translate(0, 0);
        opacity: 0.08;
    }
    50% {
        opacity: 0.12;
    }
    100% {
        transform: translate(50px, 50px);
        opacity: 0.08;
    }
}

@keyframes neural-glow {
    0%, 100% {
        opacity: 0.15;
        filter: brightness(1);
    }
    50% {
        opacity: 0.3;
        filter: brightness(1.1);
    }
}

@keyframes neural-line-flow {
    0% {
        width: 0%;
        opacity: 0;
        box-shadow: none;
    }
    25% {
        width: 130%;
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        width: 130%;
        opacity: 0.5;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }
    75% {
        width: 130%;
        opacity: 0.3;
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
    }
    100% {
        width: 0%;
        opacity: 0;
        box-shadow: none;
    }
}

@keyframes neural-line-flow-reverse {
    0% {
        width: 0%;
        opacity: 0;
        box-shadow: none;
    }
    25% {
        width: 130%;
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(201, 48, 44, 0.3);
    }
    50% {
        width: 130%;
        opacity: 0.5;
        box-shadow: 0 0 15px rgba(201, 48, 44, 0.4);
    }
    75% {
        width: 130%;
        opacity: 0.3;
        box-shadow: 0 0 8px rgba(201, 48, 44, 0.2);
    }
    100% {
        width: 0%;
        opacity: 0;
        box-shadow: none;
    }
}

section {
    opacity: 0;
}

section.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .navbar-brand {
        gap: 0.8rem;
    }

    .brand-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-image-container {
        min-height: 250px;
    }

    .servicios-grid,
    .testimonios-grid,
    .galeria-grid {
        gap: 1.2rem;
    }

    .servicio-card,
    .testimonio-card,
    .info-item {
        padding: 1.2rem;
    }

    .mision-vision {
        gap: 1rem;
    }
}

/* RESPONSIVE TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .mision-vision {
        grid-template-columns: 1fr;
    }

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

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* DESKTOP GRANDE */
@media (min-width: 1441px) {
    .container {
        max-width: 1320px;
    }
}
