:root {
    --primary: #00AEEF;
    --primary-dark: #008cc0;
    --navy: #0B2545;
    --navy-dark: #051325;
    --white: #F8F9FA;
    --text-dark: #333333;
    --text-light: #F8F9FA;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

h1,
h2,
h3,
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

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

.btn-outline:hover {
    background: white;
    color: var(--navy);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.full-width {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: all 0.4s ease;
}

.header.scrolled,
.header-internal {
    padding: 0.6rem 0;
    background: rgba(11, 37, 69, 0.98);
    /* Un poco más sólido para páginas internas */
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-social-mobile {
    display: none;
}

.nav-list a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a.btn-small::after {
    display: none;
}

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

.btn-small:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/hero-real.webp') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.9) 0%, rgba(5, 19, 37, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Sections General - Increased White Space for Premium Feel */
section {
    padding: 2.5rem 0;
    /* Balanced negative space */
    scroll-margin-top: 90px;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.stats-bar-section {
    padding: 0;
    margin-top: -50px;
    /* Overlap with hero slightly for modern look */
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--navy);
    line-height: 1.1;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1.2rem auto;
    border-radius: 2px;
}

.section-title.text-left::after {
    margin-left: 0;
}

.about .section-title::after {
    display: none;
}

.section-subtitle {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Carousel */
.services {
    background-color: #f8fbff;
}

.services-carousel-wrapper {
    position: relative;
    padding: 1rem 0;
}

.services-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 0.5rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.services-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.service-card {
    flex: 0 0 calc(33.333% - 1.34rem);
    scroll-snap-align: start;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Indicators and Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

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

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

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}



.carousel-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(11, 37, 69, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.service-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Highlight Card Styles - Moved to avoid override */


.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    background: rgba(0, 174, 239, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: var(--transition);
}



.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.35rem;
    color: var(--navy);
}



.service-card ul {
    margin-top: auto;
}

.service-card ul li {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: #2d3436;
    /* Un gris casi negro para máxima lectura */
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.service-card ul li::before {
    content: "→";
    margin-right: 0.8rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
}



/* Services CTA Section */
.services-cta {
    background: var(--navy);
    padding: 2.2rem 4rem;
    border-radius: 30px;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    color: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.cta-text p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.btn-primary-cta {
    background: var(--primary);
    color: white;
    padding: 1.2rem 2.2rem;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.2rem 2.2rem;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    text-align: center;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

/* About Section */
.about {
    background-color: white;
}

.about-wrapper {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.about-image {
    flex: 1;
    position: relative;
    order: 2;
    /* Imagen a la derecha */
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.2;
}

.about-text {
    flex: 1.2;
    order: 1;
    /* Texto a la izquierda */
}

.lead-text {
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.mv-card {
    background: #f8fbff;
    padding: 2rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 15px 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mv-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mv-card h3 i {
    color: var(--primary);
}

/* Homologaciones */
.homologaciones {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
    border: 1px dashed var(--primary);
}

.homo-title {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.homo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.homo-item {
    width: 100%;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.homo-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.homo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.homo-item p {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 2rem;
    background: white;
    padding: 2.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 174, 239, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.stats-grid::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid #eee;
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: #fcfdfe;
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.3rem;
    line-height: 1;
}

.stat-desc {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Clients Grid */
.clients {
    background: white;
    padding: 2.5rem 0 2rem 0;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    /* Espaciado más compacto */
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    flex: 0 0 130px;
    /* Tamaño de logo optimizado */
    height: 70px;
    /* Altura más compacts */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 3rem;
    font-style: italic;
    font-weight: 400;
}

.about-info-box {
    flex: 0 0 350px;
    background: var(--navy);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.2);
}

.about-info-box h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.about-info-box p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-info-box i {
    color: var(--primary);
    width: 20px;
}

/* Contact Section Redesign */
.contact {
    background-color: #f8fbff;
    padding: 2.5rem 0 4rem 0;
}

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

.contact-label {
    display: block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 3rem;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.contact-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin-top: 1.2rem;
    border-radius: 2px;
}

.contact-desc {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    flex: 0 0 55px;
    height: 55px;
    background: #eef7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.whatsapp-icon-bg {
    background: #e8f9ef;
    color: #25D366;
}

.info-text strong {
    display: block;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.info-text p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-text p b {
    color: var(--primary);
    font-weight: 700;
}

.contact-card {
    background: white;
    padding: 3.5rem;
    border-radius: 35px;
    /* Efecto de relieve avanzado mediante sombras por capas */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.03),
        0 40px 100px rgba(0, 174, 239, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 174, 239, 0.3);
    position: relative;
    z-index: 1;
}

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.8rem;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    background: #fbfcfe;
    font-family: inherit;
    transition: var(--transition);
    margin-bottom: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.form-privacy-note {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1.5rem;
    font-style: italic;
}

.form-privacy-note i {
    margin-right: 5px;
    color: #00AEEF;
}

.form-success-msg {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #2ECC71;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

.form-success-msg h3 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-success-msg p {
    color: #666;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Footer Redesign */
.footer {
    background: #051325;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo-img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #aab4c2;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #aab4c2;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.legal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legal-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.legal-item p {
    color: #aab4c2;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy p {
    color: #64748b;
    font-size: 0.9rem;
}

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

.footer-secondary-links a {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.footer-secondary-links a:hover {
    color: var(--primary);
}

/* Float WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1001;
    transition: var(--transition);
}

.whatsapp-float::after {
    content: "Contactar por WhatsApp";
    position: absolute;
    right: 75px;
    background: #0B2545;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: none;
    font-family: 'Inter', sans-serif;
}

.whatsapp-float:hover::after {
    display: block;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

/* Scroll Top Button */
#scroll-top {
    position: fixed;
    bottom: 105px;
    right: 37px;
    width: 45px;
    height: 45px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(11, 37, 69, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#scroll-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
        /* Más compacto para pantallas medianas */
    }

    .section-title,
    .contact-title {
        font-size: 2.2rem;
    }

    .services-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .service-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .carousel-controls {
        gap: 1rem;
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-gold,
    .btn-outline-white {
        width: 100%;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

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

    .about-info-box {
        flex: auto;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-card {
        padding: 2rem;
    }

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

@media (max-width: 768px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 100%;
        /* Start off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(11, 37, 69, 0.98);
        backdrop-filter: blur(15px);
        z-index: 999;
        gap: 1.5rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 4rem 2rem;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
        transition-delay: calc(0.1s * var(--i));
        width: 100%;
        text-align: center;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-list a {
        font-size: 1.4rem;
        /* Reducido de 1.8rem */
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: block;
        padding: 0.6rem;
        transition: var(--transition);
    }

    .nav-list a:hover {
        color: var(--primary);
        transform: scale(1.1);
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list .btn-small {
        margin-top: 1rem;
        width: 100%;
        max-width: 250px;
        font-size: 0.85rem;
        padding: 0.9rem;
        border-radius: 50px;
        letter-spacing: 1px;
        display: inline-block;
        /* Asegura el centrado */
    }

    .nav-social-mobile {
        margin-top: 2rem;
        /* Reducido de 3rem */
        display: flex !important;
        flex-direction: column !important;
        /* Columna para poner el texto arriba */
        gap: 0.8rem !important;
        justify-content: center;
        align-items: center;
    }

    .social-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: rgba(255, 255, 255, 0.5);
    }

    .social-icons-wrapper {
        display: flex;
        gap: 1.5rem;
    }

    .nav-social-mobile a {
        font-size: 1.3rem !important;
        padding: 0 !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .nav-social-mobile a:hover {
        color: var(--primary) !important;
        transform: translateY(-5px) !important;
    }

    .logo {
        position: relative;
        z-index: 1001;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        /* Above mobile menu */
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle i {
        transition: var(--transition);
        color: white;
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* Restaurar estilos de componentes móviles */
    .service-card {
        flex: 0 0 100%;
    }

    .carousel-controls {
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 20;
    }

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

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

    .hero {
        padding-top: 120px;
        height: auto;
        min-height: 80vh;
        display: flex;
        align-items: center;
        padding-bottom: 5rem;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(11, 37, 69, 0.8) 0%, rgba(5, 19, 37, 0.5) 100%);
    }

    .hero-title {
        font-size: 2.6rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title,
    .contact-title,
    .homo-title {
        font-size: 1.8rem;
    }

    .contact-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

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

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .footer-secondary-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

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

    /* Mobile Clients Grid Optimization */
    .clients-grid {
        gap: 1rem;
        padding: 0 1rem;
    }

    .client-logo {
        flex: 0 0 80px;
        height: 50px;
    }

    /* Contact Form Mobile Optimization */
    .contact-card {
        padding: 1.5rem;
        /* Reduced from 3.5rem */
    }

    .form-group {
        margin-bottom: 0.8rem;
        /* Reduced from 1.5rem */
    }

    .form-group label {
        margin-bottom: 0.3rem;
        /* Reduced from 0.8rem */
        font-size: 0.85rem;
    }

    .contact-card input,
    .contact-card textarea {
        padding: 0.7rem 1rem;
        /* Reduced padding */
    }

    .contact-card textarea {
        height: 100px;
        /* Reduced height */
    }

    .contact-title {
        font-size: 1.5rem;
    }
}

/* Mover badge de reCAPTCHA a la izquierda */
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 0 !important;
    right: auto !important;
    border-radius: 0 5px 5px 0 !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1) !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/* Botón Brochure Footer */
.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .homologaciones {
        text-align: center;
        padding: 1.5rem 1rem;
        /* Reduce side padding */
        margin-top: 2rem;
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding includes in width */
    }

    .homo-title {
        font-size: 1.1rem;
        /* Smaller font to fit long words */
        overflow-wrap: break-word;
        /* Standard property for wrapping */
        word-wrap: break-word;
        hyphens: auto;
        /* Allow hyphenation if supported */
        margin-bottom: 1.5rem;
        line-height: 1.4;
        width: 100%;
    }

    .homo-grid {
        justify-content: center;
        gap: 2rem;
        flex-direction: column;
        /* Stack items vertically on mobile */
    }

    .homo-item {
        max-width: 100%;
        /* Use full width */
    }

    .homo-item img {
        height: auto;
        /* Maintain aspect ratio */
        max-height: 80px;
        /* Reasonable limit */
        max-width: 80%;
    }
}