/* Base */
:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --secondary-color: #0f172a;
    --accent-color: #10b981;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --whatsapp-color: #25D366;
    --facebook-color: #1877F2;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --hero-video-scale: 1.28;
    --hero-video-offset-y: 20%;
    --hero-strip-offset: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -22px;
    width: 100%;
    height: 22px;
    background: linear-gradient(
        to bottom,
        var(--primary-dark) 0%,
        var(--primary-color) 50%,
        var(--primary-dark) 100%
    );
    box-shadow:
        0 2px 8px rgba(0,0,0,0.25),
        inset 0 2px 2px rgba(255,255,255,0.25),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 1001;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    height: 70px;
    width: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-socials {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    align-items: center;
}

.nav-socials a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a::after {
    display: none; /* Quitar linea debajo en los dropdowns */
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

.dropbtn i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: var(--transition);
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #000;
    max-width: 100vw;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, calc(-50% + var(--hero-video-offset-y))) scale(var(--hero-video-scale));
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(2, 132, 199, 0.5));
    z-index: 2;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 22px;
    background: linear-gradient(
        to bottom,
        var(--primary-dark) 0%,
        var(--primary-color) 50%,
        var(--primary-dark) 100%
    );
    box-shadow:
        0 2px 8px rgba(0,0,0,0.25),
        inset 0 2px 2px rgba(255,255,255,0.25),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    z-index: 4;
    pointer-events: none;
}

.hero::before { top: var(--hero-strip-offset); }
.hero::after { bottom: 0; }

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 450px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}

.floating-logo {
    animation: float 4s ease-in-out infinite;
}

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

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transform: translateY(0);
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

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

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-white);
    position: relative;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.02), 0 5px 20px rgba(0,0,0,0.02);
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.bg-blue-light {
    background-color: #e0f2fe;
    position: relative;
    border-top: 1px solid rgba(2, 132, 199, 0.1);
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

.bg-blue-light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    margin-top: 1rem;
}

/* About / Benefits */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-image .carousel-container {
    height: 350px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.benefit-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.benefit-card h3 {
    margin-bottom: 0.4rem;
}

/* Media */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.media-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-video {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.media-caption {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card:hover h3, .card:hover p, .card:hover .card-icon {
    color: white;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card p {
    color: var(--text-light);
    transition: var(--transition);
}

/* Solutions */
.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.solution-item.reverse {
    flex-direction: row-reverse;
}

.solution-content {
    flex: 1;
}

.solution-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.solution-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.solution-image {
    flex: 1;
    position: relative;
    width: 100%;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0e7ff, #bae6fd);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-color: var(--secondary-color);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

/* Lightbox/Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

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

.solution-image:hover .carousel-container {
    box-shadow: var(--shadow-xl);
}

/* Gallery Section for Home */
.gallery-section {
    padding: 6rem 0;
}

.main-carousel {
    height: 500px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .carousel-container, .main-carousel {
        height: 300px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    padding: 6rem 0;
    color: white;
    text-align: center;
}

.cta-container h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn.large {
    padding: 1rem 3rem;
    font-size: 1.3rem;
}

/* Contacto Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-card p, .contact-card a {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #020617;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.social-btn.facebook {
    background-color: var(--facebook-color);
}

.social-btn.tiktok {
    background-color: #000000;
}

.social-btn.whatsapp {
    background-color: var(--whatsapp-color);
}

.social-btn:hover {
    transform: translateY(-3px);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations & Utility Classes */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

.reveal, .reveal-card, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal:not(.active) {
    transform: translateY(30px);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card:not(.active) {
    transform: translateY(50px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left:not(.active) {
    transform: translateX(-50px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right:not(.active) {
    transform: translateX(50px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-logo {
        width: 300px;
    }

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

    .solution-item, .solution-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .solution-image {
        width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-video-scale: 1.28;
        --hero-video-offset-y: 24%;
        --hero-strip-offset: 64px;
    }

    .hamburger {
        display: block;
        order: 3;
    }

    .nav-socials {
        display: none;
    }
    
    .navbar::after {
        bottom: -14px;
        height: 14px;
        box-shadow:
            0 1px 6px rgba(0,0,0,0.25),
            inset 0 1px 1px rgba(255,255,255,0.25),
            inset 0 -1px 3px rgba(0,0,0,0.2);
    }

    .hero::before,
    .hero::after {
        height: 14px;
        box-shadow:
            0 1px 6px rgba(0,0,0,0.25),
            inset 0 1px 1px rgba(255,255,255,0.25),
            inset 0 -1px 3px rgba(0,0,0,0.2);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw; /* Ajustado para que no exceda el viewport */
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        background-color: transparent;
        min-width: 100%;
        text-align: center;
        padding-top: 10px;
    }

    .dropdown:hover .dropdown-content, .dropdown-content.show {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .hero-logo {
        width: 80%;
        max-width: 250px;
        margin-bottom: 0;
    }

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

    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-container, .main-carousel {
        height: 250px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
    
    body, html {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul {
        align-items: center;
    }
}
