/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #6b7280;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover .btn__icon {
    transform: translateX(2px);
}

.btn--secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.btn--secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn--large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 16px;
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; /* Inicia transparente */
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease; /* Transiciones suaves */
}

/* Estado cuando se hace scroll */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85); /* Fondo blanco con 15% de transparencia */
    backdrop-filter: blur(15px); /* El efecto "Glassmorphism" o cristal */
    -webkit-backdrop-filter: blur(15px); /* Para compatibilidad con Safari */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

/* Estado para ocultar el header al bajar */
.header.header--hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Ensure positioning context for close button */
.nav__menu {
    position: relative;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__link {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav__link:hover {
    color: #2563eb;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    color: #1f2937;
}

/* Hamburger bars and morph to X */
.nav__toggle {
    position: relative;
}
.nav__toggle-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav__toggle-bar:nth-child(1) { top: 6px; }
.nav__toggle-bar:nth-child(2) { top: 13px; }
.nav__toggle-bar:nth-child(3) { top: 20px; }
.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

.nav__close {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    color: #1f2937;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero__video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo el espacio */
}

.hero__video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__badge-icon {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

.hero__title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero__title-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero .btn--secondary {
    color: white;
    border-color: white;
}

.hero .btn--secondary:hover {
    background: white;
    color: #2563eb;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hero__stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero__stat-icon {
    width: 32px;
    height: 32px;
    color: #60a5fa;
    margin: 0 auto 0.5rem;
}

.hero__stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
}

.hero__stat-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

/* Section Headers */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__subtitle {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section__title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #ffffff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service__card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service__card:hover::before {
    transform: scaleX(1);
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.service__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.service__card:hover .service__icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.service__icon svg {
    width: 48px;
    height: 48px;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service__description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service__features {
    list-style: none;
}

.service__features li {
    color: #059669;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: 100px 0;
}

.clients__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.client__logo {
    width: 150px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client__logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Brands Section */
.brands {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.brand__card {
    text-align: center;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
}

.brand__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.brand__logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand__logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2563eb;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.brand__card:hover .brand__logo {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.brand__flag {
    font-size: 2rem;
}

.brand__flag-img {
    height: 32px;
}

.brand__logo img {
    background: transparent;
    padding: 0;
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
}

.brand__logo-container {
    align-items: center; /* Vertically align items */
}

.brand__description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.brand__features {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.brand__feature {
    font-size: 0.875rem;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.brands__guarantee {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.guarantee__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #fbbf24;
}

.guarantee__icon svg {
    width: 48px;
    height: 48px;
}

.guarantee__content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.guarantee__content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Statistics Section */
.statistics {
    padding: 100px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.statistics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.statistic__card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    color: white;
}

.statistic__card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.statistic__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.statistic__icon svg {
    width: 48px;
    height: 48px;
}

.statistic__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.statistic__label {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.statistic__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial__card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
    position: relative;
}

.testimonial__card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 6rem;
    color: #2563eb;
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.testimonial__rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.testimonial__rating svg {
    width: 20px;
    height: 20px;
}

.testimonial__quote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.testimonial__info {
    flex: 1;
}

.testimonial__name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.testimonial__company {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background: #ffffff;
}

.why-choose-us__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.features__list {
    margin: 2.5rem 0;
}

.feature__item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.feature__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.feature__icon svg {
    width: 32px;
    height: 32px;
}

.feature__content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature__content p {
    color: #6b7280;
    line-height: 1.6;
}

.why-choose-us__visual {
    position: relative;
}

.tech__showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

.tech__item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tech__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tech__item--1 {
    grid-column: 1 / -1;
}

.tech__item svg {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.tech__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tech__item span {
    font-weight: 600;
    color: #1f2937;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact__details {
    margin-top: 2.5rem;
}

.contact__detail {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact__detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.contact__detail-icon svg {
    width: 24px;
    height: 24px;
}

.contact__detail-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact__detail-content p {
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Form Styles */
.form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__input {
    width: 100%;
    padding: 18px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    color: #1f2937;
}

.form__input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form__label {
    position: absolute;
    top: 18px;
    left: 16px;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 6px;
    font-weight: 500;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 80px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__description {
    color: #d1d5db;
    line-height: 1.7;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer__links a:hover {
    color: #2563eb;
}

.footer__contact p {
    margin-bottom: 0.75rem;
    color: #d1d5db;
    font-weight: 500;
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.footer__bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3.25rem;
    }

    .section__title {
        font-size: 2.5rem;
    }

    .contact__content,
    .why-choose-us__content {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%; /* narrower panel */
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1200; /* above header */
        pointer-events: none; /* don't block clicks when hidden */
        padding: 2.5rem 1.25rem; /* inner spacing so X/content breathe */
    }

    .nav__list.show {
        right: 0;
        pointer-events: auto; /* interactive when visible */
    }

    .nav__toggle {
        display: block;
        position: relative;
        z-index: 1300; /* ensure always tappable */
        touch-action: manipulation;
    }

    /* Ocultar la X por defecto en móvil; mostrar solo cuando el menú esté abierto */
    .nav__close {
        display: none;
        position: fixed; /* anchor to viewport so it aligns with panel edge */
        top: 1rem;
        right: 1rem;
        z-index: 1301;
    }

    /* Deshabilitar la X separada; el toggle se convierte en X */
    .nav__list.show + .nav__close { display: none !important; }

    .hero {
        padding: 120px 0 80px;
        min-height: 70vh; /* Ajustado para móviles */
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero__title {
        font-size: 2.75rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact__content,
    .why-choose-us__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section__title {
        font-size: 2.25rem;
    }

    .brands__guarantee {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

    .tech__item--1 {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .section__title {
        font-size: 1.875rem;
    }

    .services,
    .brands,
    .contact,
    .why-choose-us,
    .clients,
    .testimonials {
        padding: 80px 0;
    }

    .service__card,
    .brand__card {
        padding: 2rem;
    }

    .form {
        padding: 2rem;
    }
}

/* ========= ESTILOS PARA EL CARRUSEL DE PROYECTOS ========= */
.carousel-section {
    padding: 100px 0;
    background: #ffffff;
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel__container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel__slide {
    min-width: 100%;
    position: relative;
}

.carousel__slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 3rem 2rem 2rem;
}

.carousel__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.carousel__content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white !important;
}

.carousel__content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.carousel__controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel__btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.carousel__btn svg {
    width: 24px;
    height: 24px;
}

.carousel__indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

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

.carousel__indicator.active {
    background: #2563eb;
    transform: scale(1.2);
}

.carousel__indicator:hover {
    background: #6b7280;
}

/* ========= ESTILOS PARA EL LOGO DEL CLIENTE (CON BORDE) ========= */
.nav__logo-img, .footer__logo-img {
    max-height: 45px;
    width: auto;
    display: block;
    /* Borde en negro que se adapta a la forma del PNG */
    filter: drop-shadow(1px 0 0 rgba(0,0,0,0.7))
            drop-shadow(-1px 0 0 rgba(0,0,0,0.7))
            drop-shadow(0 1px 0 rgba(0,0,0,0.7))
            drop-shadow(0 -1px 0 rgba(0,0,0,0.7));
}

.footer__logo-img {
    max-height: 50px;
    margin-bottom: 1rem;
}

/* ===== CÓDIGO PARA FORMAS FLOTANTES DEL HERO ===== */
@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.hero__shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    background-color: rgba(37, 99, 235, 0.2);
    border-radius: 20%;
    animation: floatAnimation linear infinite;
}

.hero__shape--1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-duration: 15s;
}

.hero__shape--2 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 15%;
    animation-duration: 20s;
    animation-delay: 2s;
    border-radius: 50%;
}

.hero__shape--3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 25%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.hero__shape--4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 5%;
    animation-duration: 22s;
    border-radius: 30%;
}

/* ===== ESTILOS PARA EL VIDEO BANNER ANTES DEL FOOTER ===== */
.full-width-video-section {
    width: 100%;
    height: 50vh; /* Altura del 50% de la ventana */
    max-height: 450px; /* Altura máxima para no ser demasiado grande */
    min-height: 300px; /* Altura mínima para no ser demasiado pequeño */
    overflow: hidden;
    position: relative;
}

.full-width-video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el espacio, recorta si es necesario */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.full-width-video-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Capa oscura para consistencia */
    z-index: 2;
}

/* ========= BOTÓN FLOTANTE INFERIOR DERECHO (usa logo-boton.png) ========= */
.floating-logo-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1100;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-logo-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.floating-logo-button:hover {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .floating-logo-button {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
}
