/* ============================================================
   HAZTE VIVIENDA - Static Site Stylesheet
   Colores: Primary #063775 (azul oscuro), Secondary #FF9126 (naranja)
   Tipografía: Montserrat (headings), Lato (body)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: #063775;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF9126;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #063775;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background-color: #063775;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-main a {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-main a:hover,
.nav-main a.active {
    color: #FF9126;
    border-bottom-color: #FF9126;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #FF9126;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e67d10;
    color: #fff;
}

.btn-secondary {
    background-color: #063775;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #084ea6;
    color: #fff;
}

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

.btn-outline:hover {
    background-color: #063775;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #063775;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,55,117,0.85) 0%, rgba(6,55,117,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.hero-rating .stars {
    color: #FFD700;
    font-size: 1.2rem;
}


/* ============================================================
   ABOUT / INFO SECTION
   ============================================================ */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    color: #555;
    line-height: 1.8;
}

.about-text strong {
    color: #063775;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}


/* ============================================================
   FAQ / INFO CARDS SECTION
   ============================================================ */
.info-cards {
    padding: 60px 0;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #FF9126;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.info-card h3 {
    color: #063775;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ============================================================
   GALLERY / PROJECTS SECTION
   ============================================================ */
.gallery {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FF9126;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.service-category {
    margin-bottom: 40px;
}

.service-category h3 {
    font-size: 1.3rem;
    color: #063775;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FF9126;
}

.service-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: inherit;
}

.service-card-image {
    height: 180px;
    overflow: hidden;
    background-color: #e8ecf1;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-body {
    padding: 16px;
}

.service-card-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #063775;
    margin-bottom: 4px;
}

.service-card-body p {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background-color 0.3s ease;
    color: #333;
    font-size: 0.9rem;
}

.service-list-item:hover {
    background-color: #063775;
    color: #fff;
}

.service-list-item::before {
    content: '\2192';
    color: #FF9126;
    font-weight: 700;
}

.service-list-item:hover::before {
    color: #fff;
}


/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products {
    padding: 80px 0;
    background-color: #fff;
}

.products-category {
    margin-bottom: 40px;
}

.products-category h3 {
    font-size: 1.3rem;
    color: #063775;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FF9126;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card-image {
    height: 200px;
    overflow: hidden;
    background-color: #e8ecf1;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 16px;
}

.product-card-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #063775;
}


/* ============================================================
   FAQ / PREGUNTAS FRECUENTES
   ============================================================ */
.faq {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item h3 {
    color: #063775;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    padding: 80px 0;
    background-color: #063775;
    color: #fff;
}

.contact h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact .section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-info-item .text h4 {
    color: #FF9126;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-info-item .text p,
.contact-info-item .text a {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin: 0;
}

.contact-info-item .text a:hover {
    color: #FF9126;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.contact-actions .btn {
    text-align: center;
    font-size: 1rem;
    padding: 14px 28px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.hours-table td {
    padding: 6px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: #fff;
    width: 120px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #021d3f;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: #FF9126;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: #FF9126;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: #FF9126;
    color: #fff;
}


/* ============================================================
   SUBPAGE LAYOUT (services, products)
   ============================================================ */
.page-hero {
    background-color: #063775;
    padding: 60px 20px;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-hero .breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-hero .breadcrumb a:hover {
    color: #FF9126;
}

.page-content {
    padding: 60px 0;
}

.page-content .content-body {
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-content .content-body p {
    line-height: 1.8;
    color: #555;
}

.page-content .content-body strong {
    color: #063775;
}

.requirements-list {
    margin: 20px 0;
    padding-left: 0;
}

.requirements-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.requirements-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #FF9126;
    font-weight: 700;
}

.contact-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    border-left: 4px solid #FF9126;
    margin-top: 30px;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.related-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}


/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: #555;
    line-height: 1.8;
}


/* ============================================================
   RESPONSIVE - TABLET (max-width: 992px)
   ============================================================ */
@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
    }

    .nav-main {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
        gap: 8px;
    }

    .nav-main.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .info-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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


/* ============================================================
   RESPONSIVE - MOBILE (max-width: 576px)
   ============================================================ */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

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

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero h1 {
        font-size: 1.6rem;
    }
}

/* ==================== ABOUT ROWS (texto + imagen lado a lado) ==================== */
.about-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}
.about-row.reverse {
    flex-direction: row-reverse;
}
.about-row-text {
    flex: 1;
}
.about-row-text h3 {
    color: #063775;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.about-row-text p {
    line-height: 1.7;
    margin-bottom: 10px;
    color: #444;
}
.about-row-image {
    flex: 1;
    max-width: 45%;
}
.about-row-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    object-fit: cover;
}
@media (max-width: 768px) {
    .about-row, .about-row.reverse {
        flex-direction: column;
    }
    .about-row-image {
        max-width: 100%;
    }
}

/* ==================== LIGHTBOX ==================== */
.gallery-item { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lb-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}
.lb-close:hover { color: #FF9126; }
.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    z-index: 10001;
    transition: background .2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
