/* ==================== VARIABLES Y RESET ==================== */
:root {
    --primary: #03152a;
    --primary-light: #0a2240;
    --secondary: #ff5e14;
    --secondary-hover: #e04b0c;
    --text-gray: #656565;
    --bg-gray: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    line-height: 1.8;
    overflow-x: hidden;
    background: var(--white);
}

body.menu-open {
    overflow: hidden; /* Evita que se haga scroll cuando el menú está abierto en móviles */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mejor calidad para imagenes de contenido */
.why-image img,
.contact-cta-image img,
.about-image-gallery img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* ==================== UTILIDADES Y BOTONES ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

.btn-orange:hover {
    color: var(--white);
}

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

.btn-navy:hover {
    color: var(--white);
}

.sec-title {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.sec-title .subtitle {
    display: inline-block;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 50px;
    animation: fadeInLeft 0.7s ease-out backwards;
}

.sec-title .subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.sec-title h2 {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.sec-title.center {
    text-align: center;
}

.sec-title.center .subtitle {
    padding-left: 0;
    padding-right: 0;
}

.sec-title.center .subtitle::before {
    display: none;
}

.sec-title.light h2 {
    color: var(--white);
}

/* ==================== TOPBAR ==================== */
.topbar {
    background-color: var(--primary);
    color: #b0b9c3;
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.topbar-left ul {
    display: flex;
    gap: 25px;
}

.topbar-left ul li i {
    color: var(--secondary);
    margin-right: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: #b0b9c3;
    margin-left: 15px;
    font-size: 14px;
}

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

/* ==================== HEADER ==================== */
.header {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: absolute;
    width: 100%;
    top: 45px;
    z-index: 999;
    transition: var(--transition);
}

.header.sticky {
    position: fixed;
    top: 0;
    animation: slideDown 0.5s ease-in-out;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    height: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-header {
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 12px 25px rgba(1, 25, 60, 0.12);
    transition: var(--transition);
}

.logo-header img {
    max-height: 54px;
    width: auto;
    display: block;
}

.logo img {
    max-height: 75px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.header.sticky .logo-header {
    padding: 8px 12px;
}

.header.sticky .logo img {
    max-height: 60px;
}

.main-menu ul {
    display: flex;
}

.main-menu ul li {
    margin-left: 35px;
    position: relative;
}

.main-menu ul li a {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 40px 0;
    display: block;
    position: relative;
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.main-menu ul li a:hover::after,
.main-menu ul li a.active::after {
    width: 100%;
}

.main-menu ul li a:hover,
.main-menu ul li a.active {
    color: var(--secondary);
}

.header-right {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 26px;
    color: var(--primary);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color 0.3s;
}

.mobile-toggle:hover {
    color: var(--secondary);
}

/* Overlay for Mobile Menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Close Button on Mobile */
.mobile-close {
    display: none;
}

/* ==================== HERO SECTION (INDEX) ==================== */
.hero {
    position: relative;
    height: 850px;
    display: flex;
    align-items: center;
    background: url('img/hero.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 21, 42, 0.65); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
    background: rgba(255, 94, 20, 0.1);
    border-left: 4px solid var(--secondary);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    padding: 8px 20px;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    color: var(--white);
    font-size: 70px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: capitalize;
}

.hero p {
    color: #d5dce5;
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* ==================== BANNER CONTACTO (CONTACTO) ==================== */
.page-banner {
    position: relative;
    height: 450px;
    background: url('img/hero.png') no-repeat center 30%/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 100px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 21, 42, 0.65); 
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease backwards;
}

.banner-content h1 {
    color: var(--white);
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    font-size: 16px;
}

.breadcrumb a {
    color: var(--secondary);
    margin-right: 15px;
    position: relative;
}

.breadcrumb a::after {
    content: '/';
    position: absolute;
    right: -12px;
    color: var(--white);
}

/* ==================== ABOUT SECTION (NOSOTROS - INDEX) ==================== */
.about {
    padding: 120px 0;
    overflow: hidden;
}

.about-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-image-gallery {
    flex: 1;
    min-width: 450px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    align-items: start;
    transition: all 0.6s ease-out;
}

.about-image-gallery:hover .img-main {
    transform: scale(1.02);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

.img-main {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.6s ease-out;
}

.img-n400 {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s ease-out;
}

.img-detail {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s ease-out;
}

.about-content {
    flex: 1;
    min-width: 450px;
}

.about-text-lead {
    font-size: 20px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.6;
    border-left: 3px solid var(--secondary);
    padding-left: 20px;
}

.about-list {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-list li {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
}

.about-list li i {
    width: 30px;
    height: 30px;
    background: rgba(255, 94, 20, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
}

/* ==================== SERVICES SECTION (INDEX) ==================== */
.services {
    padding: 120px 0;
    background: var(--bg-gray);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 2;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
}

.service-icon i {
    font-size: 40px;
    color: var(--secondary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.5s ease-out;
}

.service-link i {
    margin-left: 8px;
    color: var(--secondary);
    font-size: 18px;
    transition: var(--transition);
}

.service-card:hover .service-link {
    color: var(--secondary);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

.service-card.silagad-card {
    background: #fffaf7;
    border: 1px solid rgba(255, 94, 20, 0.2);
}

.service-card.silagad-card .service-icon {
    background: rgba(255, 94, 20, 0.1);
}

/* ==================== WHY CHOOSE US (INDEX) ==================== */
.why-us {
    background: var(--primary);
    padding: 120px 0;
    color: var(--white);
    position: relative;
}

.why-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.why-content {
    flex: 1;
    min-width: 450px;
}

.why-content p {
    color: #a4b1c2;
    margin-bottom: 40px;
    font-size: 18px;
}

.feature-block {
    display: flex;
    margin-bottom: 35px;
    transition: all 0.5s ease-out;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 94, 20, 0.1);
    border: 1px solid rgba(255, 94, 20, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    font-size: 30px;
    margin-right: 25px;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-block:hover .feature-icon {
    background: var(--secondary);
    color: var(--white);
    transform: rotateY(360deg);
}

.feature-block:hover {
    transform: translateX(10px);
}

.feature-text h4 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 8px;
}

.feature-text p {
    color: #a4b1c2;
    margin: 0;
    font-size: 15px;
}

.why-image {
    flex: 1;
    min-width: 450px;
    position: relative;
}

.why-image img {
    border-radius: 8px;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}


/* ==================== CONTACT CTA SECTION (INDEX) ==================== */
.contact-cta {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    text-align: center;
}

.contact-cta-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.03);
    transition: transform 8s ease;
    will-change: transform;
    filter: brightness(1.05) contrast(1.05);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.contact-cta:hover .contact-cta-image img {
    transform: scale(1.06);
}

.contact-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(3, 21, 42, 0.80) 0%,
        rgba(3, 21, 42, 0.60) 50%,
        rgba(255, 94, 20, 0.28) 100%
    );
    z-index: 1;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.contact-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 94, 20, 0.15);
    border: 1px solid rgba(255, 94, 20, 0.4);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.contact-cta-content h2 {
    color: var(--white);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.contact-cta-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 45px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}


/* ==================== CONTACT SECTION (CONTACTO) ==================== */
.contact-page {
    padding: 120px 0;
    background: var(--bg-gray);
}

.contact-wrapper {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 50px;
}

.contact-img-wrap {
    flex: 1;
    min-width: 400px;
    background: #eee;
    position: relative;
}

.contact-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-map {
    flex: 1;
    min-width: 400px;
    background: #eee;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* Removed grayscale filter */
    border-radius: 8px;
}

.contact-form-area {
    flex: 1;
    padding: 60px;
    min-width: 500px;
}

.contact-form-area .subtitle {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.contact-form-area h2 {
    font-size: 35px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-gray);
    border: 1px solid #e1e6eb;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-gray);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.1);
}

textarea.form-control {
    height: 160px;
    resize: vertical;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #020d1a;
    color: #8796a8;
    padding-top: 100px;
    font-size: 15px;
    border-top: 5px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 70px;
}

.footer-widget .logo img {
    max-height: 70px;
    width: auto;
    margin-bottom: 25px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--secondary);
}

.f-links li {
    margin-bottom: 15px;
}

.f-links li a {
    display: inline-flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.f-links li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--secondary);
    transition: var(--transition);
}

.f-links li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.f-contact li {
    display: flex;
    margin-bottom: 20px;
}

.f-contact li i {
    color: var(--secondary);
    font-size: 20px;
    margin-right: 20px;
    margin-top: 5px;
}

.f-contact li h6 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 2px;
}

.f-contact li p {
    margin: 0;
}

.footer-bottom {
    background: #010811;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p span {
    color: var(--secondary);
    font-weight: 600;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

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

    .contact-cta-content h2 {
        font-size: 42px;
    }

    .about-image-gallery {
        min-width: 100%;
        grid-template-columns: 1fr;
    }

    .about-content {
        min-width: 100%;
    }

    .about-wrap {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .hero h1, .banner-content h1 {
        font-size: 48px;
    }

    .sec-title h2 {
        font-size: 34px;
    }

    .about-wrap,
    .why-wrap {
        flex-direction: column;
        gap: 40px;
    }

    /* Ajuste de galería en móviles */
    .about-image-gallery {
        min-width: 100%;
        grid-template-columns: 1fr;
    }

    .img-main,
    .img-n400,
    .img-detail {
        width: 100%;
        height: auto;
    }

    .about-content,
    .why-content,
    .why-image {
        min-width: 100%;
    }

    .why-image img {
        height: auto;
        max-height: 400px;
    }

    /* Contact forms on mobile */
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-form-area,
    .contact-map,
    .contact-img-wrap {
        min-width: 100%;
    }

    .contact-map {
        height: 400px;
    }

    .contact-form-area {
        padding: 50px 30px;
        min-width: 100%;
    }

    /* Clean Mobile Menu */
    .main-menu {
        position: fixed;
        top: 0;
        left: -320px; /* Slide in from left */
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--white);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 50px 30px;
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-menu.active {
        left: 0;
    }

    .main-menu .mobile-logo {
        display: block;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .main-menu .mobile-logo img {
        max-height: 45px;
        width: auto;
    }

    .main-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .main-menu ul li {
        margin: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }

    .main-menu ul li:last-child {
        border-bottom: none;
    }

    .main-menu ul li a {
        padding: 18px 0;
        color: var(--primary);
        font-size: 18px;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-menu ul li a::after {
        display: none; /* Hide bottom line on mobile */
    }

    .main-menu ul li a:hover,
    .main-menu ul li a.active {
        color: var(--secondary);
        padding-left: 10px;
    }

    .mobile-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 28px;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
    
    .mobile-close:hover {
        color: var(--secondary);
        transform: rotate(90deg);
        transition: all 0.3s ease;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .topbar {
        display: none;
    }

    .header {
        top: 0 !important;
    }

    .header.sticky {
        top: 0 !important;
    }

    .header-right .btn {
        display: none;
    }
    
    .page-banner {
        margin-top: 80px;
        height: 350px;
    }

    .contact-cta {
        padding: 100px 0;
    }

    .contact-cta-content h2 {
        font-size: 36px;
    }

    .service-card {
        padding: 40px 30px;
    }

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

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-inner {
        height: 70px;
    }

    .logo-header {
        padding: 10px 14px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 90px 0 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 720px;
        margin: 0 auto;
        padding: 0 18px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form-area {
        padding: 30px 20px;
        min-width: 100%;
    }

    .contact-cta {
        padding: 60px 0;
    }

    .contact-cta-content h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .contact-cta-content > p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .contact-cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-cta-btns .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .why-image {
        width: 100%;
    }

    .why-image img {
        height: 250px;
    }

    .page-banner {
        height: 250px;
        margin-top: 70px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .breadcrumb {
        font-size: 14px;
        padding: 8px 20px;
    }

    .about {
        padding: 60px 0;
    }

    .services, .why-us, .contact-page {
        padding: 60px 0;
    }

    .sec-title h2 {
        font-size: 24px;
    }

    .sec-title .subtitle {
        font-size: 14px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .about-text-lead {
        font-size: 16px;
    }

    .about-list li {
        font-size: 14px;
    }

    .feature-text h4 {
        font-size: 18px;
    }

    .feature-text p {
        font-size: 13px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 13px;
    }

    .topbar-left ul {
        gap: 15px;
        font-size: 12px;
    }

    .header-inner {
        height: 80px;
    }

    .logo img {
        max-height: 60px;
    }
}


/* ==================== EXTRA SMALL DEVICES ==================== */
@media (max-width: 480px) {
    .header-inner {
        height: 65px;
    }

    .logo-header {
        padding: 8px 10px;
    }

    .hero {
        min-height: 100vh;
        padding: 80px 15px 20px;
        justify-content: flex-start;
        text-align: center;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .sec-title h2 {
        font-size: 20px;
    }

    .contact-cta-content h2 {
        font-size: 22px;
    }

    .banner-content h1 {
        font-size: 22px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .service-icon i {
        font-size: 30px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .header-inner {
        height: 70px;
    }

    .logo img {
        max-height: 50px;
    }

    .contact-form-area {
        padding: 20px 15px;
    }

    .feature-block {
        margin-bottom: 25px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .contact-cta-badge {
        flex-direction: column;
        gap: 8px;
    }

    .topbar-left ul {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==================== AOS SCROLL ANIMATIONS ==================== */
.aos-init {
    opacity: 0;
    transition: opacity 1s ease-out 0.2s, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.aos-init.aos-animate {
    opacity: 1;
    transform: none !important;
}

/* Fade Up Animation */
.aos-fade-up {
    transform: translateY(30px);
}

/* Fade Down Animation */
.aos-fade-down {
    transform: translateY(-30px);
}

/* Fade Left Animation */
.aos-fade-left {
    transform: translateX(-30px);
}

/* Fade Right Animation */
.aos-fade-right {
    transform: translateX(30px);
}

/* Zoom In Animation */
.aos-zoom-in {
    transform: scale(0.95);
}

/* Delays for staggered effect */
.aos-delay-100 {
    transition-delay: 0.1s !important;
}

.aos-delay-200 {
    transition-delay: 0.2s !important;
}

.aos-delay-300 {
    transition-delay: 0.3s !important;
}

/* Effects */
.aos-fade-up { transform: translateY(40px); }
.aos-fade-down { transform: translateY(-40px); }
.aos-fade-right { transform: translateX(-50px); }
.aos-fade-left { transform: translateX(50px); }
.aos-zoom-in { transform: scale(0.85); }
.aos-zoom-out { transform: scale(1.15); }

/* Delay Utility */
.aos-delay-100 { transition-delay: 0.1s; }
.aos-delay-200 { transition-delay: 0.2s; }
.aos-delay-300 { transition-delay: 0.3s; }

/* ==================== MICRO-ANIMATIONS (HOVER) ==================== */
.img-main, .img-n400, .img-detail, .why-image img {
    transition: transform 0.5s ease;
}

.about-image-gallery:hover .img-main { transform: scale(1.02); }
.about-image-gallery:hover .img-n400 { transform: scale(1.04) translateY(-5px); }
.about-image-gallery:hover .img-detail { transform: scale(1.05) translateX(5px); }
.why-image:hover img { transform: scale(1.03); }

/* ==================== FLOATING WIDGETS ==================== */
.float-btn {
    position: fixed;
    bottom: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.float-whatsapp {
    right: 30px;
    background-color: #25d366;
    animation: pulse-whatsapp 2s infinite;
}

.float-whatsapp:hover {
    color: var(--white);
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.float-scrolltop {
    left: 30px;
    background-color: var(--primary);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    font-size: 24px;
}

.float-scrolltop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-scrolltop:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

@keyframes pulse-whatsapp {
    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); }
}

@media (max-width: 767px) {
    .float-btn { width: 50px; height: 50px; font-size: 24px; bottom: 20px; }
    .float-whatsapp { right: 20px; }
    .float-scrolltop { left: 20px; }
    
    /* Disable translate animations on mobile for smoother scroll */
    .aos-init { transition-property: opacity; transform: none !important; }
}


/* ==================== FORM SUBMISSION MESSAGES ==================== */
.form-result {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
}

.form-result.show {
    display: block;
    opacity: 1;
    animation: slideDownFade 0.5s ease forwards;
}

.form-result.success {
    background-color: rgba(37, 211, 102, 0.1);
    color: #1f944a;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.form-result.error {
    background-color: rgba(255, 94, 20, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(255, 94, 20, 0.3);
}

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

/* Spinner for button */
.btn.loading span {
    opacity: 0;
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    left: calc(50% - 10px);
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
