/* ============================================
   NELSON REMODELACIONES - MAIN.CSS v2.0
   Mobile-First | No Transitions | Performance
   ============================================ */

/* ============================================
   1. RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ============================================
   2. VARIABLES
   ============================================ */

:root {
    --color-primary: #1A1A1A;
    --color-secondary: #D4AF37;
    --color-accent: #8B7355;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-background: #FFFFFF;
    --color-background-alt: #F8F8F8;
    --color-border: #E0E0E0;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    padding-top: 60px;
    /* Altura del header en mobile */
}

@media (min-width: 768px) {
    body {
        padding-top: 70px;
        /* Altura del header en tablet */
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 80px;
        /* Altura del header en desktop */
    }
}

/* ============================================
   3. ÍCONOS SVG
   ============================================ */

.icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.icon-whatsapp {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0 0 12.04 2m.01 1.67c2.2 0 4.26.86 5.82 2.42a8.225 8.225 0 0 1 2.41 5.83c0 4.54-3.7 8.23-8.24 8.23-1.48 0-2.93-.39-4.19-1.15l-.3-.17-3.12.82.83-3.04-.2-.32a8.188 8.188 0 0 1-1.26-4.38c.01-4.54 3.7-8.24 8.25-8.24M8.53 7.33c-.16 0-.43.06-.66.31-.22.25-.87.86-.87 2.07 0 1.22.89 2.39 1 2.56.14.17 1.76 2.67 4.25 3.73.59.27 1.05.42 1.41.53.59.19 1.13.16 1.56.1.48-.07 1.46-.6 1.67-1.18.21-.58.21-1.07.15-1.18-.07-.1-.23-.15-.48-.27-.25-.11-1.47-.74-1.69-.82-.23-.08-.37-.12-.56.12-.16.25-.64.81-.78.97-.15.17-.29.19-.53.07-.26-.13-1.06-.39-2-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.39.11-.5.11-.11.25-.29.37-.44.13-.14.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.11-.56-1.35-.77-1.84-.2-.48-.4-.42-.56-.43-.14 0-.3-.01-.47-.01z"/></svg>');
}

.icon-instagram {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"/></svg>');
}

/* ============================================
   4. UTILITIES
   ============================================ */

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

/* ============================================
   5. BUTTONS (Mobile First)
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

/* ============================================
   6. HEADER (Mobile First - Negro con dorado)
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.logo a {
    display: block;
    line-height: 0;
}

.logo img.l-header {
    height: 45px;
    width: auto;
    display: block;
}

/* Nav Desktop - Oculto en mobile */
.nav-desktop {
    display: none;
}

/* Menu Toggle - Visible en mobile */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #000000;
    padding: 1rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1100;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu a {
    color: var(--color-secondary);
    font-size: 1.1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    font-weight: 500;
}

/* ============================================
   7. HERO
   ============================================ */


.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    /* ✅ Centrado por defecto */
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ✅ REVERTIDO */
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    /* ✅ REVERTIDO */
    left: 0;
    width: 100%;
    height: 100%;
    /* ✅ REVERTIDO */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem;
    margin-top: -10vh;
    /* ✅ NUEVO - Sube el contenido en mobile */
}

.hero-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Logo en Hero */
.hero-logo {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-logo img {
    width: 250px;
    height: 250px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    /* ✅ Mantiene proporción */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* ============================================
   8. SECTIONS BASE
   ============================================ */

section {
    padding: 3rem 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   9. SOBRE
   ============================================ */

.sobre {
    background-color: var(--color-background);
}

.sobre strong,
.sobre b {
    color: #000000;
    font-weight: 700;
}

.sobre-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Intro con foto */
.sobre-intro {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.sobre-foto {
    width: 200px;
    height: 340px;
    overflow: hidden;
    border: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.sobre-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-texto-principal {
    flex: 1;
}

.sobre-texto-principal p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.sobre-texto-principal .lead {
    font-size: 1.125rem;
    color: var(--color-primary);
    font-weight: 500;
}

.sobre-texto-principal strong {
    color: #000000; 
    font-weight: 700;
}

.sobre-cierre {
    font-style: italic;
    color: #555555; 
    font-size: 1.05rem;
    margin-top: 1.5rem !important;
    padding-top: 1rem;
    border-top: 2px solid var(--color-secondary);
}

/* Valores Container */
.valores-container {
    margin-top: 3rem;
}

.valores-titulo {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.valor-item {
    padding: 1.5rem;
    background-color: var(--color-background-alt);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.valor-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.valor-item h4 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.valor-item p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   10. PROYECTOS / CAROUSEL
   ============================================ */

.proyectos {
    background-color: var(--color-background-alt);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 100%;
}

.carousel-track {
    display: flex;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.proyecto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 1.5rem 1rem;
    color: white;
}

.proyecto-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.proyecto-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.proyecto-ubicacion {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ============================================
   11. SERVICIOS
   ============================================ */

.servicios {
    background-color: var(--color-background);
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.servicio-card {
    padding: 1.5rem;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.servicio-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--color-secondary);
    margin-bottom: 1rem;
}

.servicio-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.servicio-card>p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.servicio-lista li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    position: relative;
}

.servicio-lista li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* ============================================
   12. ZONAS
   ============================================ */

.zonas {
    background-color: var(--color-background-alt);
}

.zonas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.zona-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.zona-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.zona-info {
    padding: 1.5rem;
}

.zona-info h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.zona-barrios {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.zona-info p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   13. CONTACTO
   ============================================ */

.contacto {
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    color: white;
}

.contacto-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contacto-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.contacto-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contacto-botones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contacto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.contacto-btn svg {
    width: 24px;
    height: 24px;
}

.contacto-btn-whatsapp {
    background-color: #0D6E5F; /* ✅ Contraste 4.6:1 con blanco */
    color: #FFFFFF;
    font-weight: 600;
    border: none;
}

.contacto-btn-whatsapp:hover {
    background-color: #0A5A4D; /* ✅ Hover más oscuro */
    color: #FFFFFF;
}

.contacto-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.contacto-horarios {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   14. FOOTER
   ============================================ */

.footer {
    background-color: #0F0F0F;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 100px;
    width: 100px;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-zonas h4,
.footer-social h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a,
.footer-zonas p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--color-secondary);
}

/* ============================================
   15. WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   16. TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .header-content {
        padding: 0 2rem;
    }

    .logo img.l-header {
        height: 55px;
    }

    /* Hero adjustments */
    .hero-content {
        margin-top: 0;
        /* Centrado normal en tablet */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .hero-logo img {
        width: 180px;
        height: 180px;
    }

    /* Sections */
    h2 {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

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

    .carousel-slide img {
        height: 500px;
    }

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

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

    .contacto-content h2 {
        font-size: 2.5rem;
    }

    .contacto-botones {
        flex-direction: row;
        justify-content: center;
    }

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

    .sobre-intro {
        flex-direction: row;
        text-align: left;
    }

    .sobre-foto {
        width: 250px;
        height: 425px;
        flex-shrink: 0;
    }

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

    .valores-titulo {
        font-size: 2rem;
    }
}

/* ============================================
   17. DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {

    /* Header */
    .logo img.l-header {
        height: 65px;
    }

    /* Nav Desktop - Mostrar */
    .nav-desktop {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-desktop a {
        color: var(--color-secondary);
        font-weight: 500;
        font-size: 1rem;
    }

    /* Menu Mobile - Ocultar */
    .menu-toggle {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

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

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

    .hero-logo img {
        width: 220px;
        height: 220px;
    }

    /* Sections */
    section {
        padding: 5rem 0;
    }

    h2 {
        font-size: 2.75rem;
    }

    .valores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Carousel */
    .carousel-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    .carousel-slide img {
        height: 600px;
    }

    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .carousel-prev {
        left: 20px;
    }

    .carousel-next {
        right: 20px;
    }

    /* Servicios y Zonas */
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .zonas-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 2rem;
        right: 2rem;
        width: 60px;
        height: 60px;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }

    .sobre-foto {
        width: 280px;
        height: 476px;
    }

    .sobre-texto-principal .lead {
        font-size: 1.25rem;
    }

    .valores-grid {
        gap: 2rem;
    }

}



/* ============================================
   18. PREVENT BODY SCROLL WHEN MENU OPEN
   ============================================ */

body.menu-open {
    overflow: hidden;
}