/* ===================================
   RESET Y BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
    background-color: #ffffff;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

/* Logo footer - excepción */
.footer-logo img {
    max-width: none;
    width: auto;
    height: 44px;
    display: block;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===================================
   TIPOGRAFÍA GENERAL
=================================== */
.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #c8a96e;
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #555;
    font-size: 1rem;
    max-width: 780px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ===================================
   BOTONES
=================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #c8a96e;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #b8924f;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

.btn-whatsapp-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-whatsapp-footer:hover {
    background-color: #1ebe5d;
}

/* ===================================
   NAVBAR
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
     background-color: #1a1a2e;
    color: #ffffff;
}

nav a {
    color: #ffffff;
}

nav a:hover {
    color: #c8a96e;;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c8a96e;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #c8a96e;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================
   HERO
=================================== */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(
        rgba(20, 20, 20, 0.58),
        rgba(20, 20, 20, 0.58)
    ), url('img/foto1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 760px;
}

.hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.4rem;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.2rem;
    line-height: 1.8;
}

/* ===================================
   NOSOTROS
=================================== */
.nosotros {
    padding: 100px 0;
    background-color: #f9f8f6;
}

.nosotros-content {
    max-width: 860px;
    margin: 0 auto;
}

.nosotros-text p {
    color: #444;
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
}

.nosotros-text p:last-child {
    margin-bottom: 0;
}

/* ===================================
   PRODUCTOS
=================================== */
.productos {
    padding: 100px 0;
    background-color: #ffffff;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.producto-card {
    background-color: #f9f8f6;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 2.2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.producto-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
}

.producto-card i {
    font-size: 2rem;
    color: #c8a96e;
    margin-bottom: 1rem;
}

.producto-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.producto-card > p {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.8;
}

/* Líneas de producto */
.producto-lineas {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.linea {
    border-left: 3px solid #c8a96e;
    padding-left: 1rem;
}

.linea-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c8a96e;
    margin-bottom: 0.4rem;
}

.linea p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ===================================
   PROYECTOS
=================================== */
.proyectos {
    padding: 100px 0;
    background-color: #f9f8f6;
}

/* Grilla de fotos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.proyecto-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.proyecto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    min-height: 280px;
}

.proyecto-item:hover img {
    transform: scale(1.05);
}

/* Overlay */
.proyecto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 15, 15, 0.88) 0%,
        rgba(15, 15, 15, 0.3) 60%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.8rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.proyecto-item:hover .proyecto-overlay {
    opacity: 1;
}

.proyecto-overlay-content {
    color: #fff;
}

.proyecto-categoria {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8a96e;
    margin-bottom: 0.4rem;
}

.proyecto-overlay-content h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.proyecto-overlay-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-proyecto {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #c8a96e;
    color: #fff;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-proyecto:hover {
    background-color: #b8924f;
}

/* ===================================
   CLIENTES
=================================== */
.clientes-bloque {
    background-color: #ffffff;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 2.8rem 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.clientes-titulo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.clientes-titulo::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #c8a96e;
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.clientes-lista {
    color: #555;
    font-size: 0.97rem;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   CTA PROYECTOS
=================================== */
.proyectos-cta {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    color: #fff;
}

.proyectos-cta h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.proyectos-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

.proyectos-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   LIGHTBOX
=================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(200, 169, 110, 0.7);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* ===================================
   CONTACTO
=================================== */
.contacto {
    padding: 100px 0;
    background-color: #ffffff;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    margin-top: 1rem;
}

.contacto-info h3,
.contacto-form h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e8e4de;
}

.contacto-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.6rem;
    align-items: flex-start;
}

.contacto-item i {
    color: #c8a96e;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contacto-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 0.3rem;
}

.contacto-item p,
.contacto-item a {
    color: #444;
    font-size: 0.97rem;
    line-height: 1.7;
}

.contacto-item a:hover {
    color: #c8a96e;
}

/* Formulario */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #2c2c2c;
    background-color: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.92rem;
    display: none;
}

.form-status.success {
    background-color: #eafaf1;
    color: #27ae60;
    border: 1px solid #a9dfbf;
    display: block;
}

.form-status.error {
    background-color: #fdf0f0;
    color: #c0392b;
    border: 1px solid #f5b7b1;
    display: block;
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background-color: #111111;
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img
footer img.logo {
    height: 44px;
    maz-width: none;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-logo p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links h4,
.footer-contacto h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8a96e;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c8a96e;
}

.footer-contacto p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-contacto i {
    color: #c8a96e;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.4rem 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   ANIMACIONES
=================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Secciones */
    .nosotros,
    .productos,
    .proyectos,
    .contacto {
        padding: 70px 0;
    }

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

    /* Productos */
    .productos-grid {
        grid-template-columns: 1fr;
    }

    /* Proyectos */
    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    /* Contacto */
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Clientes */
    .clientes-bloque {
        padding: 2rem 1.5rem;
    }

    /* CTA */
    .proyectos-cta h3 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .btn-primary,
    .btn-whatsapp {
        padding: 0.8rem 1.4rem;
        font-size: 0.88rem;
    }

    .producto-card {
        padding: 1.6rem;
    }

    .clientes-lista {
        font-size: 0.9rem;
    }
}