/* VARIABLES DE DISEÑO */
:root {
    --primary: #253786;
    --dark: #3c3c3b;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR PROFESIONAL */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px; 
    width: auto;
    padding: 5px 0;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); 
}


@media (max-width: 768px) {
    .logo-img {
        height: 45px; 
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 4px;
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10; /* Mayor que el slider */
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    width: 100%;
}

/* BOTONES */
.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 4px;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 4px;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #1a2a66;
    transform: translateY(-3px);
}

/* WHATSAPP */
.wsp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.wsp-fixed:hover {
    transform: scale(1.1);
}
/* SECCIÓN SERVICIOS */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 14px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--dark);
    margin: 10px 0;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--primary);
}

.card-icon i {
    font-size: 30px;
    color: var(--primary);
}

.service-card:hover .card-icon i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.service-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.card-list {
    list-style: none;
}

.card-list li {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-list li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 12px;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.footer-logo span { color: var(--primary); }

.footer-social a {
    color: var(--white);
    font-size: 20px;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-social a:hover { color: var(--primary); }

.copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* SECCIÓN PROYECTOS */
.projects {
    padding: 100px 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que la imagen se deforme */
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 55, 134, 0.85); /* Color azul de la marca con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.1);
}

.overlay-text h4 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
}

.overlay-text p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.view-more {
    text-align: center;
    margin-top: 50px;
}

.btn-secondary-dark {
    color: var(--dark);
    border: 2px solid var(--dark);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary-dark:hover {
    background: var(--dark);
    color: var(--white);
}
/* BENEFICIOS TÉCNICOS */
.tech-benefits {
    padding: 60px 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.benefit-item i {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 15px;
    filter: brightness(1.5);
}

.benefit-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 13px;
    opacity: 0.8;
}

/* CONTACTO */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-details {
    margin-top: 30px;
}

.detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail i {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* FORMULARIO */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus {
    border-color: var(--primary);
}

/* RESPONSIVO CONTACTO */
@media (max-width: 850px) {
    .contact-box {
        grid-template-columns: 1fr;
    }
}
/* BARRA DE CONFIANZA */
.trust-bar {
    background: var(--dark); /* Color #3c3c3b */
    padding: 25px 0;
    border-bottom: 3px solid var(--primary); /* Línea de color azul #253786 */
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 15px;
}

.trust-item i {
    color: var(--primary); /* Color azul #253786 */
    font-size: 22px;
    filter: brightness(1.5); /* Hace que el azul resalte sobre el fondo oscuro */
}

.trust-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .trust-bar {
        padding: 40px 0;
    }
    .trust-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas en móvil */
        row-gap: 30px;
    }
}
/* Contenedor principal */
.wsp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Globo de mensaje */
.wsp-msg {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    max-width: 220px;
    position: relative;
    border: 1px solid #eee;
    animation: slideIn 0.5s ease-out forwards;
    display: none; /* Se activa con el script */
}

.wsp-msg p {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Flechita del globo */
.wsp-msg::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Botón de cerrar mensaje */
.wsp-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

/* Animación de entrada */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVIDAD DEL MENÚ --- */

/* Ocultar hamburguesa en escritorio */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark);
}

@media (max-width: 768px) {
    .hamburger {
        display: block; /* Mostrar solo en móviles */
        z-index: 1001;
    }

    /* Animación hamburguesa a "X" */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%; /* Escondido a la izquierda */
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        left: 0; /* Aparece al activarse */
    }

    .nav-menu li {
        
        margin: 15px 0; /* Quita el margin-left que traía de escritorio */
        width: 100%;    /* Para que el área de clic sea amplia */
        text-align: center;
    }

    .btn-nav {
        display: inline-block;
        width: 80%;
        margin: 0 auto;        /* Centra el botón */
        width: fit-content;    /* Evita que se estire a todo lo ancho si no quieres */
        min-width: 200px;
    }
}

/* ESTILOS PÁGINA SERVICIOS */
.page-header {
    background: linear-gradient(rgba(37, 55, 134, 0.9), rgba(37, 55, 134, 0.9)), url('images/bg-services.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: white;
    text-align: center;
}

.page-header h1 { font-size: 42px; font-family: 'Montserrat', sans-serif; }

.services-detail { padding: 80px 0; }

.service-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 70px;
}

.service-row.reverse { flex-direction: row-reverse; }

.service-image { flex: 1; }

.service-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-info { flex: 1; }

.badge {
    background: rgba(37, 55, 134, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-info h2 { font-size: 32px; margin: 15px 0; color: var(--dark); }

.feature-list { list-style: none; margin: 25px 0; }

.feature-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

.feature-list i { color: var(--primary); }

/* Adaptación Móvil */
@media (max-width: 768px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .feature-list li { justify-content: center; }
}

/* CATÁLOGO EMPAVONADOS */
.empavonado-catalog, .solar-catalog {
    margin-top: 40px;
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    width: 100%; /* Asegura que ocupe el ancho disponible */
}

.catalog-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalog-header h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 22px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.catalog-item {
    text-align: center;
}

.catalog-img {
    width: 100%;
    aspect-ratio: 1/1; /* Cuadradas */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.catalog-item:hover .catalog-img {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Ajuste móvil */
@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles pequeños */
    }
}

/* CTA EN SERVICIOS */
.cta-services {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.cta-services h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-services p {
    margin-bottom: 30px;
    color: #666;
}

/* AJUSTES EXTRAS AL FOOTER */
.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin: 20px 0;
    }
}

/* PAGINA DE CONTACTO */
.contact-page {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* Tarjetas de información */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.detail-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.detail-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
}

.detail-card p {
    font-size: 13px;
    color: #888;
}

.detail-card a, .detail-card span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

/* Estilos del Formulario */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Mapa */
.map-section {
    line-height: 0;
}

/* Adaptación para móviles */
@media (max-width: 850px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-page {
        padding: 60px 0;
    }
}
/* ESTILOS DEL MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content i {
    font-size: 60px;
    color: #25d366; /* Color verde éxito */
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Tarjetas de Proyecto */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 55, 134, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: 0.4s;
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none; /* JS lo activa */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border: 3px solid white;
}

.close-btn { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
.prev-btn, .next-btn { position: absolute; background: none; border: none; color: white; font-size: 40px; cursor: pointer; padding: 20px; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* ==========================================================================
   PAGINA DE PROYECTOS (FIX PARA FOTOS VERTICALES Y HORIZONTALES)
   ========================================================================== */
.portfolio-filters {
    padding: 40px 0;
    text-align: center;
}

.filter-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.portfolio-grid-section {
    padding-bottom: 100px;
}

/* CAMBIO CLAVE: Masonry solo dentro de este contenedor */
.portfolio-grid {
    display: block; /* IMPORTANTE: Cambiado de grid a block para que funcione column-count */
    column-count: 3;
    column-gap: 25px;
    width: 100%;
}

.portfolio-item {
    display: inline-block; /* IMPORTANTE: Evita que la foto se corte entre columnas */
    width: 100%;
    margin-bottom: 25px; /* Espacio vertical entre fotos */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: auto; /* IMPORTANTE: Deja que la foto mande la altura (Vertical/Horizontal) */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.portfolio-img {
    width: 100%;
    height: auto;
}

.portfolio-img img {
    width: 100%;
    height: auto; /* Mantiene la proporción original */
    display: block;
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, var(--primary));
    padding: 40px 20px 20px;
    color: white;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    bottom: 0;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info h3 {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
}

.portfolio-info span {
    font-size: 14px;
    opacity: 0.9;
}

/* PAGINA NOSOTROS */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin: 20px 0;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--primary); /* Efecto decorativo */
}

/* Sección de Valores */
.values-section {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-item i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.value-item h3 {
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Adaptación Móvil */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image img {
        box-shadow: 10px 10px 0px var(--primary);
    }
}
/* SECCIÓN MARCAS */
.marcas-aliadas {
    padding: 60px 0;
    background: #fff;
    text-align: center;
    border-top: 1px solid #eee;
}

.marcas-aliadas p {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.marcas-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    filter: grayscale(100%); /* Efecto profesional */
    opacity: 0.6;
    transition: 0.3s;
}

.marcas-grid:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.marcas-grid img {
    height: 100px; /* Ajusta según el logo */
    width: auto;
}

@media (max-width: 768px) {
    .marcas-grid { gap: 30px; }
    .marcas-grid img { height: 30px; }
}

/* Contenedor del logo en el footer */
.footer-logo-container {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 85px; /* Tamaño ideal según tu diseño */
    width: auto;
    /* Este filtro vuelve el logo blanco para que resalte en el fondo oscuro */
    filter: brightness(0) invert(1); 
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Ajuste para que en móvil el logo quede centrado */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .footer-logo-container {
        justify-content: center;
    }
}
.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social i {
    font-size: 22px; /* Un poco más grandes */
    color: #fff; /* Blanco puro para que resalten */
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social i:hover {
    transform: translateY(-3px);
    color: #25d366; /* El de WhatsApp se pone verde al pasar el mouse */
}

/* Si quieres que el de Instagram sea específico */
.footer-social a[href*="instagram"]:hover i {
    color: #E1306C;
}
/* Ajuste específico para la galería en móviles */
@media (max-width: 992px) {
    .portfolio-grid {
        column-count: 2; /* 2 columnas en tablets */
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        column-count: 1; /* 1 columna en celulares */
    }
}
