:root {
    /* Paleta de Azules Tecnológicos */
    --primary: #0a1628;
    /* Azul Oscuro Profundo */
    --primary-light: #162544;
    /* Azul Oscuro Medio */
    --secondary: #00d4ff;
    /* Cian Eléctrico */
    --accent: #3b82f6;
    /* Azul Brillante */
    --accent-light: #60a5fa;
    /* Azul Claro */
    --accent-dark: #1d4ed8;
    /* Azul Intenso */
    --highlight: #818cf8;
    /* Violeta Azulado */
    --bg: #f0f7ff;
    /* Fondo Azul Muy Claro */
    --bg-alt: #e0eeff;
    /* Fondo Azul Alternativo */
    --white: #ffffff;
    --text: #1e3a5f;
    /* Texto Azul Oscuro */
    --text-light: #4a6785;
    /* Texto Azul Claro */
    --glow: rgba(0, 212, 255, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    padding-top: 80px;
    min-height: 100vh;
}

/* ==================== NAVEGACIÓN TECNOLÓGICA ==================== */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(22, 37, 68, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
}

.sticky-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--secondary) 20%,
            var(--accent) 50%,
            var(--secondary) 80%,
            transparent 100%);
    opacity: 0.6;
    animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.sticky-nav.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--white);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.nav-logo span {
    color: var(--secondary);
    text-shadow: 0 0 20px var(--glow);
}

.nav-logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--highlight));
    border-radius: 2px;
    animation: logoLine 2s ease-in-out infinite;
}

@keyframes logoLine {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 1;
    }

    50% {
        transform: scaleX(0.7);
        opacity: 0.7;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-links li {
    padding: 0;
    border: none;
}

.nav-links li::before {
    display: none;
}

.nav-links a {
    color: #94b8d4;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow);
}

.nav-links a:hover {
    color: var(--white);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 50%;
}

/* Efecto de partículas en hover */
.nav-links a:active {
    transform: scale(0.98);
}

/* Menú móvil toggle tecnológico */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px var(--glow);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--glow);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== HEADER ==================== */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Grid de líneas tecnológicas */
.main-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.logo span {
    color: var(--secondary);
    text-shadow: 0 0 30px var(--glow);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 10px 0 30px;
    color: #b4d4e8;
}

.header-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BOTONES ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    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.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ==================== CONTENEDOR ==================== */
.container {
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
}

/* ==================== SECCIÓN TÍTULO ==================== */
.section-title {
    text-align: center;
    margin: 80px 0 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==================== GRID DE SERVICIOS ==================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--highlight));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
}

.service-card h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    margin-top: 8px;
    border-radius: 2px;
}

ul {
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-alt);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: var(--text);
}

li::before {
    content: "→";
    color: var(--secondary);
    margin-right: 10px;
    font-weight: bold;
}

.card-cta {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-cta:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* ==================== SECCIÓN SOBRE NOSOTROS ==================== */
.about-section {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 40px;
    margin: 80px 0;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.about-simple h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-simple h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    padding: 30px 40px;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.highlight-icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.about-highlight p {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.about-highlight strong {
    color: var(--secondary);
    text-shadow: 0 0 20px var(--glow);
}

/* ==================== SECCIÓN CONTACTO ==================== */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid tecnológico */
.contact-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.contact-subtitle {
    color: #94b8d4;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.contact-card:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.contact-card p {
    margin: 0 0 10px;
    color: #94b8d4;
    font-size: 0.95rem;
}

.contact-action {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-card.whatsapp:hover {
    border-color: #25d366;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.2);
}

.contact-card.email:hover {
    border-color: var(--accent-light);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.2);
}

.cta-final {
    position: relative;
    z-index: 1;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: linear-gradient(180deg, var(--primary) 0%, #050d1a 100%);
    color: #94b8d4;
    padding: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    color: var(--white);
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.footer-brand h3 span {
    color: var(--secondary);
    text-shadow: 0 0 20px var(--glow);
}

.footer-brand p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #94b8d4;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* ==================== ANIMACIONES ==================== */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ==================== CARRUSEL DE IMÁGENES ==================== */
.carousel-section {
    width: 100%;
    padding: 0;
    margin-top: -30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.carousel-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    background: #000;
    /* Fondo negro para que las imágenes contenidas se vean bien */
    aspect-ratio: 16 / 9;
    /* Ajuste automático a formato estándar de diapositiva */
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Para que las diapositivas de PPT no se recorten y se vea el texto completo */
    display: block;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.8;
}

.carousel-btn:hover {
    opacity: 1;
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(10, 22, 40, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--glow);
    transform: scale(1.2);
}

/* ==================== RESPONSIVE - TODOS LOS DISPOSITIVOS ==================== */

/* Desktop Grande (1200px+) - Ya cubierto por estilos base */

/* Laptop / Desktop Pequeño (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }

    .logo h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* Tablet Grande (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        max-width: 720px;
    }

    .logo h1 {
        font-size: 2.8rem;
    }

    .main-header {
        padding: 5rem 1rem 7rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .about-highlight {
        max-width: 500px;
        padding: 25px 30px;
    }

    .carousel-container {
        max-width: 90%;
        border-radius: 16px;
    }

    .carousel-slide img {
        height: 400px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .sticky-nav {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, rgba(22, 37, 68, 0.98) 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        display: none;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    .main-header {
        padding: 4rem 1rem 6rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .tagline {
        font-size: 1.1rem;
    }

    .header-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 80%;
        max-width: 300px;
        justify-content: center;
    }

    .container {
        margin-top: -30px;
        padding: 0 20px;
    }

    .section-title {
        margin: 60px 0 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .about-section {
        padding: 40px 25px;
        margin: 50px 0;
        border-radius: 20px;
    }

    .about-simple h2 {
        font-size: 1.8rem;
    }

    .about-highlight {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
        max-width: 100%;
        gap: 15px;
    }

    .highlight-icon {
        font-size: 2.5rem;
    }

    .about-highlight p {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 40px 20px;
        margin: 40px 0;
        border-radius: 20px;
    }

    .contact-section h2 {
        font-size: 1.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .cta-final .btn-primary {
        width: 100%;
        max-width: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 25px;
        gap: 25px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }

    .footer-bottom {
        padding: 15px;
    }

    .carousel-section {
        margin-top: -30px;
        padding: 0 15px;
    }

    .carousel-container {
        max-width: 100%;
        border-radius: 16px;
    }

    .carousel-slide img {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Móvil Grande (481px - 767px) */
@media (max-width: 600px) {
    .logo h1 {
        font-size: 2.2rem;
    }

    .nav-logo h1 {
        font-size: 1.4rem;
    }

    .main-header {
        padding: 3.5rem 1rem 5rem;
    }

    .service-card h2 {
        font-size: 1.3rem;
    }

    .icon {
        font-size: 2rem;
    }

    li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .card-cta {
        font-size: 0.9rem;
    }
}

/* Móvil (hasta 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .sticky-nav {
        padding: 10px 0;
    }

    .nav-logo h1 {
        font-size: 1.3rem;
    }

    .nav-logo h1::after {
        height: 1px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .main-header {
        padding: 3rem 0.8rem 4.5rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        margin: 50px 0 25px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .service-card {
        padding: 20px;
        border-radius: 16px;
    }

    .service-card h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .service-card h2::after {
        width: 40px;
        height: 3px;
    }

    .about-section {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .about-simple h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .about-simple h2::after {
        width: 60px;
        height: 3px;
    }

    .about-highlight {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .highlight-icon {
        font-size: 2.2rem;
    }

    .about-highlight p {
        font-size: 1rem;
    }

    .contact-section {
        padding: 30px 15px;
        border-radius: 16px;
    }

    .contact-section h2 {
        font-size: 1.6rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .contact-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .contact-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-links {
        gap: 12px 20px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .carousel-section {
        margin-top: -20px;
        padding: 0 10px;
    }

    .carousel-slide img {
        height: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-btn-prev {
        left: 8px;
    }

    .carousel-btn-next {
        right: 8px;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Móvil Pequeño (hasta 360px) */
@media (max-width: 360px) {
    .nav-logo h1 {
        font-size: 1.1rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .main-header {
        padding: 2.5rem 0.5rem 4rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 18px 15px;
    }

    .about-simple h2 {
        font-size: 1.4rem;
    }

    .about-highlight p {
        font-size: 0.95rem;
    }

    .contact-section h2 {
        font-size: 1.4rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Orientación Landscape en Móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: 55px;
    }

    .sticky-nav {
        padding: 8px 0;
    }

    .main-header {
        padding: 2rem 1rem 3rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .logo h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.95rem;
        margin: 8px 0 15px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Preferencia de movimiento reducido (accesibilidad) */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-fade-in,
    .animate-slide-up {
        opacity: 1;
        transform: none;
    }
}

/* Modo Oscuro del Sistema (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a1628;
        --bg-alt: #162544;
    }
}