/* ==========================================================================
   CONSTRUCTORA REYSEG - STYLES OVERVIEW
   Palette: Onyx & Gold
   ========================================================================== */

:root {
    --onyx-dark: #080808;
    --onyx-light: #141414;
    --onyx-panel: #1e1e1e;
    --gold-primary: #d4af37;
    --gold-hover: #b3922e;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffdf73 50%, #b3922e 100%);
    --text-light: #f8f8f8;
    --text-muted: #aaaaaa;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--onyx-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--gold-primary);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-gold {
    color: var(--gold-primary);
}

.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.title-center {
    text-align: center;
    margin-bottom: 4rem;
}

.title-center h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.title-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--onyx-dark);
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    color: var(--onyx-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--onyx-dark);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-normal);
}

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--gold-primary);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(8, 8, 8, 0.8), rgba(8, 8, 8, 0.8)), url('https://images.unsplash.com/photo-1541888081628-98e3b564175b?q=80&w=2670&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px;
}

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

.hero-subtitle {
    font-family: var(--font-body);
    color: var(--gold-primary);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================================================
   NOSOTROS (INTRO)
   ========================================================================== */
.intro-nosotros {
    background-color: var(--onyx-light);
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    position: relative;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    z-index: -1;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicios {
    background-color: var(--onyx-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--onyx-panel);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-normal);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--gold-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.service-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA STRIP
   ========================================================================== */
.cta-strip {
    background: var(--gold-gradient);
    padding: 5rem 0;
    text-align: center;
    color: var(--onyx-dark);
}

.cta-strip h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-strip p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-phone {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.cta-strip .btn-outline {
    border-color: var(--onyx-dark);
    color: var(--onyx-dark);
}

.cta-strip .btn-outline:hover {
    background: var(--onyx-dark);
    color: var(--gold-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #050505;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   INTERIOR PAGES (GLOBAL)
   ========================================================================== */
.page-header {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 90px;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ==========================================================================
   NOSOTROS: HISTORIA
   ========================================================================== */
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.historia-content .lead-text {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.historia-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.historia-images {
    position: relative;
}

.img-main {
    border-radius: 8px;
    width: 85%;
    height: auto;
}

.img-accent {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 50%;
    border-radius: 8px;
    box-shadow: -10px -10px 40px rgba(0, 0, 0, 0.8);
    border: 3px solid var(--onyx-dark);
}

.img-secondary {
    border-radius: 8px;
}

.experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--gold-gradient);
    color: var(--onyx-dark);
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 5px;
}

/* ==========================================================================
   NOSOTROS: MISION & VISION
   ========================================================================== */
.mision-vision {
    background-color: var(--onyx-panel);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background-color: var(--onyx-dark);
    padding: 4rem 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.mv-card.gold-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(8, 8, 8, 1) 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

.mv-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mv-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   NOSOTROS: VALORES
   ========================================================================== */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.valor-item {
    text-align: center;
    padding: 2rem;
}

.valor-icon {
    width: 80px;
    height: 80px;
    background-color: var(--onyx-panel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--gold-primary);
    transition: var(--transition-normal);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.valor-item:hover .valor-icon {
    background: var(--gold-primary);
    color: var(--onyx-dark);
    transform: scale(1.1);
}

.valor-item h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.valor-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   SERVICIOS: DETALLE (Z-Pattern)
   ========================================================================== */
.servicios-detalle {
    background-color: var(--onyx-dark);
}

.service-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-image {
    flex: 1;
    position: relative;
}

.service-image img {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-content .service-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    background: var(--onyx-panel);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-content p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.service-list i {
    margin-top: 5px;
}

/* ==========================================================================
   CASOS DE ÉXITO: MASONRY & LIGHTBOX
   ========================================================================== */
.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
    padding-top: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.masonry-overlay i {
    color: var(--gold-primary);
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.masonry-item:hover .masonry-overlay i {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid var(--gold-primary);
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--gold-primary);
}

/* ==========================================================================
   CONTACTO: SPLIT LAYOUT
   ========================================================================== */
.contacto-seccion {
    background-color: var(--onyx-dark);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Info Izquierda */
.contacto-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.contacto-lead {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--onyx-panel);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.info-texto h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.info-texto p,
.info-texto a {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-texto a:hover {
    color: var(--gold-primary);
}

/* Formulario Derecha */
.contacto-formulario {
    background: var(--onyx-panel);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.contacto-formulario h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.form-grupo {
    margin-bottom: 1.5rem;
}

.form-grupo-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

select option {
    background: var(--onyx-dark);
    color: var(--text-light);
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE (Updates)
   ========================================================================== */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
        margin-bottom: 2rem;
    }

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

    .historia-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .historia-images {
        order: -1;
        margin-bottom: 3rem;
    }

    .img-main {
        width: 100%;
    }

    .img-accent {
        width: 60%;
        bottom: -20px;
    }

    /* Servicios Z-Pattern Adjustments */
    .service-row,
    .service-row.reverse {
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .service-image {
        order: -1;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 2;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .cta-strip h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .historia-content .lead-text {
        font-size: 1.15rem;
    }

    .mv-card {
        padding: 3rem 2rem;
    }

    .service-content h2 {
        font-size: 1.8rem;
    }

    .contacto-formulario {
        padding: 2rem;
    }

    .form-grupo-doble {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1;
    }

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

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

    .experience-badge {
        width: 90px;
        height: 90px;
        padding: 1rem;
    }

    .experience-badge .number {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.65rem;
    }
}