/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
    :root {
        --primary-dark: #00355B;
        --primary-light: #EEF5FC;
        --primary-gray: #7F8390;
        --construction-color: #F0954D;
        --systems-color: #007E37;
        --remodeling-color: #7254A3;
        --transition: all 0.3s ease;
        --gallery-gap: 1rem;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        color: var(--primary-dark);
        background-color: var(--primary-light);
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    body.no-scroll {
        overflow: hidden;
    }

/* =========================================
   2. COMPONENTES GLOBALES (Botones, Títulos)
   ========================================= */
    h1, h2, h3, h4, h5 {
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 1rem;
        color: var(--primary-dark);
    }

    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0px;
        padding-left: 0;
    }

    section {
        padding: 40px 0;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

   .btn {
        display: inline-block;
        background: var(--primary-dark);
        color: var(--primary-light);
        padding: 15px 24px;
        border-radius: 30px;
        transition: var(--transition);
        cursor: pointer;
        font-family: 'Montserrat', Tahoma;
        font-size: 1rem;
        font-weight: 600;
        border: 2px solid var(--primary-gray);
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 20px #111820;
    }

    .btn:hover {
        background: transparent;
        color: var(--primary-light);
        transform: translateY(3px);
    }

    .btn2 {
        display: block;
        margin: 0 auto;
        width: fit-content;
        background: var(--primary-dark);
        color: var(--primary-light);
        padding: 15px 24px;
        border-radius: 30px;
        transition: var(--transition);
        cursor: pointer;
        font-family: 'Montserrat', Tahoma;
        font-size: 1rem;
        font-weight: 600;
        border: 2px solid var(--primary-gray);
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 20px #111820;
    }

    .btn2:hover {
        color: var(--primary-light);
        transform: translateY(3px);
    }
        
    /* Corregido el pseudo-elemento para la línea animada del botón */
    .btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--primary-dark);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease-out;
    }

    .btn:hover::after {
        transform: scaleX(1);
    }

    .btn-light {
        background: transparent;
        color: var(--primary-dark);
        border: 2px solid var(--primary-dark);
    }

    .btn-light:hover {
        background: var(--primary-dark);
        color: var(--primary-light);
    }

    /* WhatsApp Button */
    .whatsapp-float {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: #25d366;
        color: var(--primary-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
        z-index: 100;
        transition: var(--transition);
        animation: pulse 2s infinite;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
    }

    .whatsapp-chat {
        position: fixed;
        bottom: 100px;
        right: 30px;
        width: 300px;
        max-width: calc(100vw - 60px);
        background: var(--primary-light);
        border-radius: 10px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
        z-index: 101;
        padding: 1.5rem;
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border: 1px solid var(--primary-gray);
    }

    .whatsapp-chat.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .chat-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        background: var(--primary-dark);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        color: var(--primary-light);
    }

    .chat-title {
        font-family: 'Montserrat';
        margin-top: 1rem;
        font-size: 1.2rem;
        color: var(--primary-dark);
    }

    .chat-title2 {
        font-family: 'Lato';
        font-weight: 500;
        font-size: 1rem;
        color: var(--primary-dark);
    }

/* Estilo para los inputs más pequeños */
    .chat-small-input {
        font-size: 0.85rem !important; /* Texto más pequeño para los datos */
        padding: 15px 12px !important;
        font-family: 'Lato';
    }

/* Estilo específico para el texto que escribe el usuario y el placeholder */
    .chat-small-input::placeholder {
        font-size: 0.85rem;
        color: var(--primary-gray);
    }

    .chat-close {
        margin-left: auto;
        cursor: pointer;
        font-size: 1.2rem;
        color: var(--primary-dark);
    }

    .chat-message {
        background: var(--primary-gray);
        padding: 10px;
        border-radius: 10px 10px 0 10px;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        color: var(--primary-dark);
    }

    .chat-form .form-group {
        margin-bottom: 1rem;
    }

    .chat-btn {
        font-family: 'Montserrat';
        width: 100%;
        background: var(--primary-dark);
        color: var(--primary-light);
    }

    .chat-btn:hover {
        background: var(--primary-dark);
    }

/* Color gris cuando el select tiene la opción por defecto (inválido) */
    .form-input.custom-select:invalid {
        color: #6f6f6f;
    }

/* =========================================
   3. LAYOUT (Header, Footer, Nav)
   ========================================= */
    /* Header */
    header {
        position: absolute;
        left: 0;
        right: 0;
        width: 90%;
        max-width: 1170px;
        margin:0 auto;
        z-index: 1000;
        background: rgba(238, 245, 252);
        border-radius: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transition: var(--transition);
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
    }

    .logo {
        display: flex;
        align-items: center;
        padding-left: 0 !important;
        margin-left: -7px;
        height: 80px;
        transition: var(--transition);
        transform: scale(1);
        transform-origin: left;
    }

    .logo-img {
        display: block;
        height: 90px;
        width: auto;
        image-rendering: auto;
        object-fit: contain;
        transition: none;
    }

    .nav-menu {
        display: flex;
        list-style: none;
    }

    .nav-item {
        margin-left: 3rem;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-tog {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .dropdown-icon {
        margin-left: 3px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: -22%;
        transform: translateY(-50%) translateX(0);
        background: var(--primary-light);
        min-width: 200px;
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        list-style: none;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px) translateX(0);
    }

    .dropdown-menu li {
        list-style: none;
    }

    .dropdown-link {
        display: block;
        padding: 12px 15px;
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s ease;
        text-align: center;
        font-family: 'Montserrat';
        color: var(--primary-dark);
    }

    .dropdown-link:hover {
        background: #7f839050;
        color: var(--primary-light);
        padding-left: 30px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }

    .nav-link {
        font-family: 'Montserrat', Tahoma;
        font-weight: 600;
        transition: var(--transition);
        color: var(--primary-dark);
        position: relative;
    }

    .hamburger {
        display: none;
        cursor: pointer;
        position: relative;
        z-index: 1005;
        width: 30px;
        height: 25px;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-line {
        width: 100%;
        height: 4px;
        background-color: var(--primary-dark);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-radius: 5px;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Footer */
    footer {
        background: var(--primary-dark);
        color: var(--primary-light);
        padding: 1rem 0 1rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.8fr;
        gap: 20px;
        margin-bottom: 1rem;
        align-items: start;
    }

    .footer-contact {
    padding-left: 60px;
}

    .footer-logo {
        height: auto;
        width: 170px;
        margin-bottom: 1rem;
    }

    .footer-title {
        font-family: 'Montserrat';
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        position: relative;
        display: inline-block;
        color: var(--primary-light);
        padding-top: 20px;
    }

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary-gray);
    }

    .footer-links {
        font-family: 'Lato';
        font-weight: 300;
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .footer-links li {
        margin-bottom: 3px;
    }

    .footer-links li i{
        margin-right: 5px;
        width: 20px;
        text-align: center;
    }

    .footer-link {
        font-family: 'Lato';
        margin-bottom: 0.8rem;
        transition: var(--transition);
        color: var(--primary-light);
    }

    .footer-link:hover {
        color: var(--primary-gray);
        padding-left: 5px;
    }

    .footer-info{
        font-family: 'Lato';
        font-weight: 400;
        text-align: justify;
        line-height: 1.1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 100px;
    }

    .social-links {
        display: flex;
        justify-content: left;
        gap: 15px;
        margin-top: 1.5rem;
    }

    .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(251, 252, 247, 0.1);
        border-radius: 30%;
        transition: var(--transition);
        color: var(--primary-light);
    }

    .social-link:hover {
        background: var(--primary-gray);
        transform: translateY(-3px);
    }

    .copyright {
        font-family: 'lato';
        font-weight: 300;
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(251, 252, 247, 0.1);
        font-size: 0.9rem;
        color: var(--primary-gray);
    }

/* =========================================
   4. SECCIONES ESPECÍFICAS
   ========================================= */
    /* Hero Section */
    .hero {
        height: 100vh;
        background: linear-gradient(rgba(0, 53, 91, 0.9), rgba(0, 53, 91, 0.9)), url('https://syppro.com.co/web-content/uploads/2026/1/images/Panoramica_inicio.webp') no-repeat center center/cover;
        display: flex;
        align-items: flex-start;
        text-align: center;
        color: var(--primary-light);
        position: relative;
        z-index: 1;
        padding-top: 150px;
    }

    .logo-systems,
    .logo-remodeling,
    .logo-construction {
        max-width: 550px;
        margin: 0 auto;
        display: block;
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 1rem;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-family: 'Montserrat', Tahoma;
        font-weight: 600;
        line-height: 1.2;
        font-size: 4rem;
        margin-bottom: 1.5rem;
        animation: fadeInDown 1s ease;
        color: var(--primary-light);
    }

    .hero-subtitle {
        font-family: 'Lato', Tahoma;
        font-weight: 300;
        line-height: 1.4;
        font-size: 1.5rem;
        margin-bottom: 2rem;
        font-weight: 300;
        animation: fadeInUp 1s ease;
        color: var(--primary-light);
    }

    .hero-badge {
        display: inline-block;      
        padding: 8px 40px;
        background-color: var(--primary-gray);
        color: var(--primary-light);
        border-radius: 50px;
        font-family: 'Montserrat';
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
        border: 1px solid var(--primary-gray);
        animation: fadeInDown 1.5s ease;
    }

    /* Choices Section */
    .choices {
        background: white;
    }

    .choices-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .choice-card {
        flex: 0 0 370px;
        width: 370px;
        min-width: 370px;
        background: var(--primary-light);
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        height: auto;
        text-align: center;
        overflow: hidden;
        border: 1px solid var(--primary-gray);
    }

    .choice-content {
        display: flex;
        flex-direction: column;
        padding: 25px;
        flex-grow: 1;
    }

    .choice-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .choice-icon {
        height: 35px;
        display: flex;
        flex-direction: column;
        font-size: 2.5rem;
        margin-bottom: 0;
        color: var(--primary-gray);
    }

    .choice-title {
        margin: 15px 0;
        min-height: 1.2em;
        font-size: 1.7rem;
        margin-bottom: 1rem;
        font-family: 'Montserrat';
        color: var(--primary-gray);
    }

    .choice-desc {
        font-family: 'Montserrat';
        font-weight: 400;
        color: var(--primary-dark);
    }

    /* Specialties Section */
    .specialties {
        background: var(--primary-light);
    }

    .section-title {
        font-family: 'Montserrat', Tahoma;
        font-weight: 600;
        line-height: 1;
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        position: relative;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--primary-gray);
    }

    .section-title.no-underline::after {
        display: none;
    }

    .specialties-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .specialty-card {
        flex: 0 0 370px;
        width: 370px;
        min-width: 370px;
        background: var(--primary-light);
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        height: auto;
        text-align: center;
        overflow: hidden;
        border: 1px solid var(--primary-gray);
    }

    .specialty-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .specialty-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .specialty-image {
        height: 200px;
        overflow: hidden;
    }

    .specialty-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .specialty-card:hover .specialty-image img {
        transform: scale(1.05);
    }

    .specialty-content {
        display: flex;
        flex-direction: column;
        padding: 25px;
        flex-grow: 1;
    }

    .specialty-icon {
        height: 35px;
        display: flex;
        flex-direction: column;
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .construction .specialty-icon {
        color: var(--construction-color);
    }

    .systems .specialty-icon {
        color: var(--systems-color);
    }

    .remodeling .specialty-icon {
        color: var(--remodeling-color);
    }

    .specialty-title {
        margin: 15px 0;
        min-height: 1.2em;
        font-size: 1.7rem;
        margin-bottom: 1rem;
        font-family: 'Montserrat', Tahoma;
    }

    .construction .specialty-title {
        color: var(--construction-color);
    }

    .systems .specialty-title {
        color: var(--systems-color);
    }

    .remodeling .specialty-title {
        color: var(--remodeling-color);   
    }

    .specialty-desc-construction {
        font-family: 'Montserrat', Tahoma;
        font-weight: 400;
        color: var(--construction-color);
        margin-bottom: 1.5rem;
        min-height: 3.5em;
    }

    .specialty-desc-systems {
        font-family: 'Montserrat', Tahoma;
        font-weight: 400;
        color: var(--systems-color);
        margin-bottom: 1.5rem;
        min-height: 3.5em;
    }

    .specialty-desc-remodeling {
        font-family: 'Montserrat', Tahoma;
        font-weight: 400;
        color: var(--remodeling-color);
        margin-bottom: 1.5rem;
        min-height: 3.5em;
    }

    .specialty-list {
        font-family: 'Lato', Tahoma;
        font-weight: 300;
        text-align: left;
        list-style: none;
        margin-bottom: 20px;
        flex-grow: 1;
    }

    .specialty-list li {
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
        position: relative;
        color: var(--primary-dark);
    }

    .construction .specialty-list li::before {
        content: '•';
        color: var(--construction-color);
        font-weight: bold;
        position: absolute;
        left: 0;
    }

    .systems .specialty-list li::before {
        content: '•';
        color: var(--systems-color);
        font-weight: bold;
        position: absolute;
        left: 0;
    }

    .remodeling .specialty-list li::before {
        content: '•';
        color: var(--remodeling-color);
        font-weight: bold;
        position: absolute;
        left: 0;
    }

    /* FAQ Section */
    .faq-question{
        font-family: 'Montserrat';
    }

    .faq-answer{
        font-family: 'Lato';
    }

    /* About Section */
    .about {
        background: var(--primary-dark);
    }
    
    .about-image {
        border-radius: 100px;
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .about-text p {
        margin-bottom: 1.5rem;
        color: var(--primary-dark);
        font-family: 'Lato', Tahoma;
        font-weight: 300;
        text-align: justify;
    }

    /* Gallery Section */
    .gallery {
        background: var(--primary-light);
        position: relative;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .gallery-container {
        position: relative;
        overflow: hidden;
        max-width: 100%;
        padding: 0 70px; /* Espacio para las flechas */
        margin: 0 auto;
    }

    .gallery-track {
        display: flex;
        gap: 16px;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .gallery-item {
        flex-shrink: 0;
        height: 250px;
        overflow: visible;
        border-radius: 8px;
        filter: grayscale(100%);
        transition: all 0.3s ease;
        border: 2px solid var(--primary-gray);
        position: relative;
        cursor: pointer;
        margin: 20px 0;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 6px;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover {
        filter: grayscale(0%);
        border-color: var(--primary-dark);
        z-index: 10;
    }

    .gallery-item:hover img {
        transform: scale(1.03);
        filter: grayscale(0%);
    }

    .gallery-img {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
        color: white;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: transform 0.3s ease;
        z-index: 5;
        pointer-events: none;
        border-radius: 6px 6px 6px 6px;
        font-family: 'Montserrat';
    }

    .gallery-item:hover .gallery-img {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
        
    .gallery-container {
        padding-left: 10px;
        padding-right: 10px;
    }
        
    /* Flechas */
    .gallery-left-zone, .gallery-right-zone {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 100%;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .gallery-left-zone {
        left: 0;
    }

    .gallery-right-zone {
        right: 0;
    }

    .gallery-control {
        background: none;
        color: var(--primary-light);
        border: none;
        padding: 0;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.2rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        pointer-events: all;
    }

    .gallery-left-zone:hover .gallery-control, .gallery-right-zone:hover .gallery-control {
        opacity: 1;
        pointer-events: all;
    }

    .gallery-control:hover {
        background: var(--primary-dark);
        transform: scale(1.1);
        opacity: 1;
    }

    .gallery-control:active {
        transform: scale(0.95);
    }

    /* Marquee Section */
    .marquee-section {
        background: var(--primary-light);
        padding: 40px 0;
        overflow: hidden;
        width: 100%;
    }

    .marquee-container {
        overflow: hidden;
        padding: 20px 0;
        white-space: nowrap;
        position: relative;
        width: 100%;
        display: flex;
    }

    .marquee-track {
        display: flex;
        align-items: center;
        animation: marquee-slide 20s linear infinite;
        flex-shrink: 0;
        min-width: 100%;
        gap: 40px;
        padding-right: 40px;
    }

    .marquee-track img {
        height: 100px;
        width: auto;
        flex-shrink: 0;
        display: block;
        object-fit: contain;
    }
    
    /* Contact Section */
    .contact {
        background: linear-gradient(rgba(238, 245, 252, 0.9), rgba(238, 245, 252, 0.9)), url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
        color: var(--primary-light);
        text-align: center;
    }

    .contact-title {
        margin-bottom: 2rem;
        color: var(--primary-dark);
    }

    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: none;
        border-radius: 5px;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        background: var(--primary-light);
        color: var(--primary-dark);
        border: 1px solid var(--primary-gray);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--primary-dark);
    }

    textarea.form-input {
        min-height: 150px;
        resize: vertical;
    }

     /* Specialities Pages */
    .remodeling, .systems, .construction {
        background: var(--primary-light);
    }

/* =========================================
  5. MEDIA QUERIES (Responsive)
========================================= */
    /* Animations */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }

    @keyframes marquee-slide {
        from {
            transform: translateX(calc(-100% - 40px));
        }
        to {
            transform: translateX(0);
        }
    }

    /* Responsive Design */
    @media (min-width: 993px) {
        header {
            position: absolute;
            top: 20px;
        }

        .logo{
            transform-origin:left center;
            margin-left: -7px;
        }

        .nav-menu {
            display: flex;
        }

        .hamburger, .nav-overlay {
            display: none;
        }

        .nav-link{
            position: relative;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: var(--primary-dark);
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 70px;
        }
    }
    
    @media (max-width: 992px) {
        header {
            position: absolute;
            top: 20px;
        }

        .header-container {
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 1002;
        }

        .logo {
            transform-origin: left center;
            margin-left: -7px;
        }

        .nav-menu {
            position: absolute;
            top: 140%; 
            right: 0;
            width: 70%;
            min-width: 250px;
            max-width: 340px;
            display: flex;
            flex-direction: column;
            list-style: none;
            background: var(--primary-light);
            border: 1px solid var(--primary-gray);
            border-top: none;
            border-radius: 0px 0px 10px 10px;
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
            transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.4s ease;
            z-index: 998;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
        }

        .nav-menu.active {
            max-height: 500px;
            opacity: 1;
            visibility: visible;
        }

        .nav-menu li a {
            line-height: 2.5;
            display: block;
        }

        .nav-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(17, 24, 32, 0.5);
            z-index: 997;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }

        .nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .hamburger {
            display: flex;
        }

        .nav-item {
            margin: 0;
        }

        .nav-menu li a {
            padding: 10px;
            display: block;
            width: 100%;
            text-align: center;
            border-bottom: 1px solid hsla(205, 6%, 59%, 0.2);
        }

        .nav-link {
            position: relative;
        }
              
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3.5px;
            background: var(--primary-dark);
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 70px;
        }

        .nav-menu li:last-child a {
            border-bottom: none;
        }
            
        .about-content {
            grid-template-columns: 1fr;
        }

        .specialty-card {
            flex: 0 0 370px;
        }
            
        .gallery-item {
            width: calc(50% - (var(--gallery-gap) / 2));
        }

        .hero-badge {
            font-size: 0.85rem;
        }

        .section-title {
            font-size: 2rem;
        }

        .footer-content {
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .footer-contact {
            padding-left: 0;
        }
    
        .footer-info {
            padding-right: 0;
            grid-column: span 2;
        }

        .marquee-track {
            gap: 30px;
            padding-right: 30px;
            animation: marquee-slide 22s linear infinite;
        }
    
        .marquee-track img {
            height: 80px;
        }

        .nav-menu li a {
            padding: 10px;
            display: block;
            width: 100%;
            text-align: center;
            border-bottom: 1px solid hsla(205, 6%, 59%, 0.2);
        }

        .nav-menu .dropdown-menu li a {
            border-bottom: none;
        }

        .nav-menu .dropdown {
            border-bottom: 1px solid hsla(205, 6%, 59%, 0.2);
        }

        .dropdown:hover .dropdown-menu {
            opacity: 0;
            visibility: hidden;
            transform: translateY(0);
        }
    
        .dropdown:hover .dropdown-icon {
            transform: none;
        }
    
        /* Estilos para el dropdown en mobile */
        .dropdown-tog {
            cursor: pointer;
            width: 100%;
            justify-content: space-between;
            padding: 12px 15px;
        }
    
        /* Menu dropdown en mobile */
        .dropdown-menu {
            position: static;
            transform: none;
            max-height: 0;
            margin-top: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: none;
            border-radius: 0;
            padding: 0;
        }

        /* Estado activo del dropdown en mobile */
        .dropdown.active .dropdown-menu {
            max-height: 500px;
            opacity: 1;
            visibility: visible;
            padding: 0;
        }
    
        /* Rotación del icono en mobile cuando está activo */
        .dropdown.active .dropdown-icon {
            transform: rotate(180deg);
        }
    
        /* Ajustar enlaces en mobile */
        .dropdown-link {
            text-align: left;
            padding: 12px 15px;
        }
    
        .dropdown-link:hover {
            padding-left: 40px;
        }
    
        @keyframes marquee-slide {
            from {
                transform: translateX(calc(-100% - 30px));
            }
            to {
                transform: translateX(0);
            }
        }
    }

    @media (max-width: 768px) {
        .marquee-track {
            gap: 25px;
            padding-right: 25px;
            animation: marquee-slide 18s linear infinite;
        }
    
        .marquee-track img {
            height: 70px;
        }

        .hero-subtitle {
            font-size: 1.3rem;
        }
    
    @keyframes marquee-slide {
        from {
            transform: translateX(calc(-100% - 25px));
        }
        to {
            transform: translateX(0);
        }
    }
    }

    @media (max-width: 650px) {
        .footer-content {
            grid-template-columns: 1fr;
        }

        .footer-info {
            align-items: flex-start; 
            text-align: left;
            grid-column: span 1;
        }

        .footer-title{
            padding-top: 0;
        }

        .social-links {
            justify-content: flex-start;
        }

        .footer-links li {
            white-space: normal;
        }
    }

    @media (max-width: 480px) {
        .logo-img {
            display: block;
            height: 80px;
            width: auto;
            image-rendering: auto;
            object-fit: contain;
            transition: none;
        }
        
        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
        }

        .marquee-track {
            gap: 20px;
            padding-right: 20px;
            animation: marquee-slide 15s linear infinite;
        }
    
        .marquee-track img {
            height: 60px;
        }
    
        .marquee-section {
            padding: 30px 0;
        }
    
        .marquee-container {
            padding: 20px 0;
        }
    
    @keyframes marquee-slide {
        from {
            transform: translateX(calc(-100% - 20px));
        }
        to {
            transform: translateX(0);
        }
    }
    }

    @media (max-width: 380px) {
        .specialty-card {
            flex: 0 0 100%;
            width: 100%;
            min-width: 100%;
            max-width: 320px;
            margin: 0 auto;
        }

        .hero-title {
            font-size: 2rem;
        }
    }

/* =========================================
   6. CARPETA LEGAL (Todo el style)
   ========================================= */
    /* Términos y condiciones y política de datos */
        .legal-header { 
            background: var(--primary-dark);
            padding: 180px 0 60px;
            text-align: center;
            border-bottom: 1px solid var(--primary-gray);
        }
        
        .legal-nav-toggle {
            display: none;
            margin-top: -30px;
            margin-bottom: 0px;
        }

        .legal-layout {
            display: grid;
            grid-template-columns: 250px 3fr;
            gap: 40px;
        }
        
        .legal-nav { 
            background: var(--primary-light);
            font-family: 'Montserrat';
            padding: 20px;
            border-radius: 10px;
            margin-top: 10px;
            margin-bottom: -20px;
        }
        
        .legal-nav h4 {
            color: var(--primary-dark);
            margin-bottom: 1rem;
        }
        
        .legal-nav ul {
            list-style: none;
        }
        
        .legal-nav a {
            text-decoration: none;
            color: var(--primary-gray);
            font-family: 'Montserrat';
            font-size: 0.9rem;
            display: block;
            padding: 5px 0 8px 15px;
            border-left: 2px solid transparent;
            transition: all 0.2s ease;
        }

        .legal-nav a:hover {
            color: var(--primary-dark);
            border-left-color: var(--primary-dark);
            padding-left: 25px;
        }

        .legal-content section {
            padding: 0.8rem;
        }

        .legal-content h2 {
            font-family: 'Montserrat';
            color: var(--primary-dark);
            border-bottom: 2px solid var(--primary-light);
            padding-bottom: 10px;
            margin: 1.5rem 0 0.8rem;
        }

        .legal-content h2 i {
            color: rgba(127, 131, 144, 0.5);
            font-size: 1.1rem;
        }

        .legal-content ul {
            margin: 0.5rem 0 0.8rem;
            padding-left: 1.5rem;
        }

        .legal-content p, .legal-content li {
            font-family: 'Lato';
            line-height: 1.8;
            color: var(--primary-dark);
            margin: 0 0 0.5rem;
        }

        .highlight-box {
            background: rgba(127, 131, 144, 0.3);
            border-left: 3px solid var(--primary-dark);
            padding: 24px 28px;
            margin: 30px 0;
            border-radius: 0 4px 4px 0;
            font-style: italic;
            font-family: 'Lato';
            font-size: 1.05rem;
        }

        .legal-cta {
            text-align: center; 
            margin-top: 30px;
        }

        .legal-cta .btn {
            background: var(--primary-dark); 
            border: none;
        }

    @media (min-width: 993px) {
        .legal-nav {
            position: sticky;
            top: 70px; /* debajo del header */
        }
    }

    @media (max-width: 992px) {

        .legal-content {
            margin-top: -30px;
        }

        .legal-layout {
            grid-template-columns: 1fr;
        }

        .legal-nav {
            position: static;
            max-width: 320px;
            width: 90vw;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            margin-top: -25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .legal-nav.active {
            max-height: 70vh;
            opacity: 1;
            visibility: visible;
            overflow-y: auto;
            margin-top: 15px;
        }

        .legal-nav-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            background: var(--primary-dark);
            color: var(--primary-light);
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            font-family: 'Montserrat';
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }

        .legal-nav-toggle:hover {
            background: var(--primary-gray);
            transform: translateY(-2px);
        }

        .legal-nav-toggle i {
            transition: transform 0.3s ease;
        }

        .legal-nav-toggle.active i {
            transform: rotate(180deg);
        }

        .legal-nav h4 {
            display: none;
        }
    }

    /* ABOUT HERO */
        .about-hero {
            text-align: center;
            margin-bottom: 60px;
        }
        .about-hero h1 {
            font-family: 'Montserrat';
            font-weight: 700;
            font-size: 2.6rem;
            margin-bottom: 15px;
        }
        .about-hero p {
            font-family: 'Lato';
            font-size: 1.1rem;
            margin-bottom: 30px;
        }
        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 30px;
        }
        .stat-card {
            text-align: center;
        }
        .stat-number {
            font-family: 'Montserrat';
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-dark);
        }  
        .stat-label {
            font-family: 'Lato';
        }

    /* VALUE GRID */
        .about-value-prop {
            margin-bottom: 60px;
        }
        .value-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        .value-card {
            text-align: center;
            padding: 20px;
        }
        .value-card i {
            font-size: 2rem;
            color: var(--primary-dark);
            margin-bottom: 10px;
        }

    /* METHODOLOGY */
        .about-method ol {
            list-style: none;
            counter-reset: section;
        }
        .about-method ol li {
            margin-bottom: 25px;
            position: relative;
            padding-left: 40px;
        }
        .about-method ol li::before {
            counter-increment: section;
            content: counter(section, decimal-leading-zero);
            position: absolute;
            left: 0;
            font-family: 'Montserrat';
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-dark);
        }

    /* TEAM */
        .about-team .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
            gap: 30px;
        }
        .team-card img {
            width: 100%;
            border-radius: 10px;
            object-fit: cover;
        }

    /* VALUES LIST */
        .about-values ul {
            list-style: none;
            padding: 0;
        }
        .about-values li {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
        }
        .about-values li i {
            margin-right: 10px;
            color: var(--primary-dark);
        }

    /* CTA */
        .about-cta {
            text-align: center;
            margin-top: 80px;
        }
