/* ==========================================================================
   Decora con Madera - Carpintería & Diseño
   Carta de Presentación Minimalista, Simétrica & Portafolio Visual Optimizado
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-red-accent: #C8382B;
    --color-red-dark: #A3281C;
    --color-wood: #8C6D53;
    --color-charcoal: #1F2124;
    --color-bg: #FAF8F5;
    --color-card-bg: #ffffff;
    --color-border: #EAE4DC;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* ELIMINAR CUALQUIER SCROLL HORIZONTAL EN MÓVILES Y ESCRITORIO */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-charcoal);
    font-size: 1.05rem;
    line-height: 1.6;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .font-heading {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
}

/* HEADER CON LAYOUT 100% SIMÉTRICO */
.presentation-header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.brand-logo-img {
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* MENÚ HORIZONTAL ALINEADO Y SIMÉTRICO */
.header-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav-links a {
    color: var(--color-charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.02rem;
    transition: color 0.25s ease;
}
.header-nav-links a:hover {
    color: var(--color-red-accent);
}

.btn-whatsapp-header {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.btn-whatsapp-header:hover {
    background: #1EBE57;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* HERO PRESENTACIÓN SIMÉTRICO & CENTRADO */
.hero-presentation {
    background: linear-gradient(135deg, rgba(31, 33, 36, 0.94) 0%, rgba(55, 52, 49, 0.86) 100%), 
                url('../assets/hero.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 70px 15px;
    text-align: center;
    border-bottom: 4px solid var(--color-red-accent);
}
.hero-logo-main {
    max-height: 110px;
    width: auto;
    max-width: 90%;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #E26D5C;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 1.18rem;
    max-width: 760px;
    margin: 0 auto 30px;
    opacity: 0.95;
    font-weight: 400;
}
.btn-hero-cta {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 15px 36px;
    border-radius: 35px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 100%;
}
.btn-hero-cta:hover {
    background: #1EBE57;
    color: #ffffff;
    transform: scale(1.03);
}

/* GALERÍA DE PROYECTOS SIMÉTRICA (IMÁGENES COMPLETAS SIN CORTAR) */
.section-title-simple {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.section-subtitle-simple {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.portfolio-item-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.portfolio-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-color: var(--color-red-accent);
}

/* CONTENEDOR DE IMAGEN SIMÉTRICO */
.portfolio-img-container {
    position: relative;
    height: 340px;
    background: #F4F1ED;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}
.portfolio-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.35s ease;
    cursor: pointer;
}
.portfolio-item-card:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-charcoal);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.portfolio-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.portfolio-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.portfolio-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 18px;
}
.btn-whatsapp-card {
    background: var(--color-bg);
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-red-accent);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: all 0.25s ease;
    display: block;
    width: 100%;
}
.btn-whatsapp-card:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

/* PROCESO SIMÉTRICO (3 PASOS EN COLUMNAS EQUILIBRADAS) */
.process-section {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 60px 15px;
}
.step-number-badge {
    width: 58px;
    height: 58px;
    background: var(--color-bg);
    color: var(--color-red-accent);
    border: 2px solid var(--color-red-accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* FOOTER SIMÉTRICO */
.presentation-footer {
    background: var(--color-charcoal);
    color: rgba(255,255,255,0.8);
    padding: 45px 15px 30px;
    text-align: center;
}
.footer-logo-sm {
    max-height: 50px;
    width: auto;
    max-width: 80%;
    margin: 0 auto 16px;
    display: block;
}

.floating-wa-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 1050;
    transition: transform 0.3s ease;
}
.floating-wa-btn:hover {
    transform: scale(1.08);
    color: #ffffff;
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA Y SIMETRÍA 100% DISPOSITIVOS MÓVILES
   ========================================================================== */

@media (max-width: 767.98px) {
    /* HEADER MÓVIL ALINEADO Y CENTRADO */
    .presentation-header .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .brand-logo-img {
        height: 42px;
        max-width: 140px;
    }
    .btn-whatsapp-header {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 5px;
    }

    /* HERO MÓVIL SIMÉTRICO */
    .hero-presentation {
        padding: 45px 15px;
    }
    .hero-logo-main {
        max-height: 85px;
        margin-bottom: 15px;
    }
    .hero-tagline {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }
    .hero-desc {
        font-size: 1.02rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    .btn-hero-cta {
        width: 100%;
        font-size: 1rem;
        padding: 14px 20px;
        text-align: center;
    }

    /* TITULOS DE SECCIÓN MÓVILES */
    .section-title-simple {
        font-size: 1.65rem;
    }
    .section-subtitle-simple {
        font-size: 0.98rem;
        margin-bottom: 25px;
    }

    /* TARJETAS DE PORTAFOLIO EN MÓVIL */
    .portfolio-img-container {
        height: 260px;
        padding: 10px;
    }
    .portfolio-content {
        padding: 18px 15px;
        text-align: center;
    }
    .portfolio-title {
        font-size: 1.1rem;
    }
    .portfolio-desc {
        font-size: 0.9rem;
    }

    /* PASOS Y FOOTER MÓVIL */
    .process-section {
        padding: 40px 15px;
    }
    .presentation-footer {
        padding: 35px 15px 25px;
    }

    .floating-wa-btn {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    .brand-logo-img {
        height: 36px;
        max-width: 120px;
    }
    .btn-whatsapp-header {
        padding: 7px 11px;
        font-size: 0.78rem;
    }
    .portfolio-img-container {
        height: 220px;
    }
}
