/* ============================================
   PALOMA BÁEZ INTERIORISMO - Hoja de Estilos
   ============================================ */

:root {
    --primary: #1a1a1a;
    --accent: #b59b7c;
    --accent-light: #d4c4b0;
    --bg: #ffffff;
    --bg-alt: #f7f6f4;
    --light-gray: #f4f4f4;
    --text: #333;
    --text-muted: #777;
    --border-color: #e0ddd9;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --nav-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.logo a { display: flex; align-items: center; }
.logo img {
    height: 70px;
    object-fit: contain;
}

.menu-container { display: flex; align-items: center; gap: 2rem; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}
.nav-links a {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 130px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 1;
    right: 0;
    border: 1px solid var(--border-color);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: var(--text);
    padding: 10px 16px;
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition);
}
.dropdown-content a:hover { background: var(--bg-alt); color: var(--accent); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--primary);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    height: 85vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-content p {
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 5rem 0;
}
.section--alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
}
.section-header .line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 18px auto 0;
}
.section-header p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.9rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SERVICIOS (miniatura home)
   ============================================ */
.servicios-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}
.servicios-mini .servicio-item {
    flex: 0 1 180px;
}
.servicio-item {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--bg-alt);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.servicio-item:hover {
    border-color: var(--accent);
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.servicio-item h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}

/* ============================================
   SOLUCIONES HOME (preview)
   ============================================ */
.soluciones-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}
.soluciones-preview .solucion-card {
    flex: 0 1 220px;
}
.solucion-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}
.solucion-card:hover { transform: translateY(-3px); }
.solucion-card h3 {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--primary);
}
.solucion-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
}
.solucion-card .line-sm {
    width: 25px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 1rem;
}

/* ============================================
   PROYECTOS
   ============================================ */
.proyectos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}
.proyecto-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: #eee;
    cursor: pointer;
}
.proyecto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.proyecto-card:hover img { transform: scale(1.05); }
.proyecto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity var(--transition);
}
.proyecto-card:hover .proyecto-overlay { opacity: 1; }
.proyecto-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 400;
}

/* ============================================
   PROJECT GALLERY (individual project pages)
   ============================================ */
.proyecto-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}
.proyecto-gallery-item {
    position: relative;
    overflow: hidden;
    background: #eee;
}
.proyecto-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.proyecto-gallery-item:hover img {
    transform: scale(1.05);
}
.proyecto-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    opacity: 0;
    transition: opacity var(--transition);
}
.proyecto-gallery-item:hover .proyecto-gallery-caption {
    opacity: 1;
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 5%;
}
.about-content p {
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* ============================================
   FORMULARIO COLAPSABLE (Home)
   ============================================ */
.form-toggle-wrapper {
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}
.form-toggle-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}
.form-toggle-btn:hover { background: var(--accent); }

.form-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}
.form-collapsible.open {
    max-height: 3000px;
}

/* ============================================
   CONTACTO Y FORMULARIO
   ============================================ */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}
.contacto-info h3 {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.contacto-info p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.8;
}
.contacto-info a { color: var(--accent); }
.contacto-info a:hover { text-decoration: underline; }

.form-section {
    background: var(--bg-alt);
    padding: 3rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    outline: none;
    transition: border var(--transition);
}
.form-control:focus { border-color: var(--accent); }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 300;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent);
}

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

.btn-enviar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}
.btn-enviar:hover { background: var(--accent); }

.form-msg {
    margin-bottom: 1rem;
    padding: 0.8rem;
    font-size: 0.85rem;
    border: 1px solid;
}
.form-msg--ok { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32; }
.form-msg--warn { background: #fff8e1; border-color: #ffe082; color: #8d6e63; }
.form-msg--error { background: #ffebee; border-color: #ffcdd2; color: #c62828; }

/* ============================================
   PÁGINA DE SERVICIOS
   ============================================ */
.servicio-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 0;
}
.servicio-block:nth-child(even) .servicio-img { order: 2; }
.servicio-block:nth-child(even) .servicio-text { order: 1; }

.servicio-img {
    height: 500px;
    overflow: hidden;
}
.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.servicio-block:hover .servicio-img img { transform: scale(1.03); }

.servicio-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--bg-alt);
}
.servicio-block:nth-child(even) .servicio-text { background: white; }

.servicio-text h3 {
    font-size: 1.1rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.servicio-text p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}
.servicio-text .num {
    font-size: 3rem;
    font-weight: 200;
    color: var(--accent-light);
    margin-bottom: 1rem;
    line-height: 1;
}

/* ============================================
   PÁGINA SOLUCIONES
   ============================================ */
.solucion-full {
    padding: 5rem 0;
}
.solucion-full:nth-child(even) { background: var(--bg-alt); }

.solucion-full .container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }

.solucion-header {
    text-align: center;
    margin-bottom: 3rem;
}
.solucion-header h3 {
    font-size: 1.4rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.solucion-header p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

.solucion-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 3rem;
}
.solucion-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.solucion-details h4 {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 2rem 0 1rem;
    color: var(--primary);
}
.solucion-details p,
.solucion-details li {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}
.solucion-details ul {
    list-style: none;
    padding: 0;
}
.solucion-details ul li::before {
    content: '—';
    margin-right: 8px;
    color: var(--accent);
}
.solucion-details .pack {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent);
}
.solucion-full:nth-child(even) .solucion-details .pack {
    background: var(--bg-alt);
}
.solucion-details .pack h5 {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: var(--primary);
}
.solucion-details .nota {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(181,155,124,0.08);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 2rem;
}
.btn-cta:hover { background: var(--accent); color: white; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary);
    color: #ccc;
    padding: 4rem 5% 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 1.2rem;
}
.footer-col p,
.footer-col a {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 2;
    color: #aaa;
}
.footer-col a:hover { color: var(--accent); }

.footer-logo {
    margin-bottom: 1rem;
}
.footer-logo img {
    height: 65px;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    font-size: 0.75rem;
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.footer-social svg {
    width: 16px;
    height: 16px;
    fill: #aaa;
    transition: fill var(--transition);
}
.footer-social a:hover svg { fill: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-bottom p {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #666;
}
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}
.footer-legal a {
    font-size: 0.68rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-legal a:hover { color: var(--accent); }

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 5%;
}
.legal-content h1 {
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-align: center;
}
.legal-content h2 {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 2rem 0 1rem;
}
.legal-content p,
.legal-content li {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.legal-content ul { padding-left: 1.5rem; }

/* ============================================
   PAGE HERO (para subpáginas)
   ============================================ */
.page-hero {
    height: 40vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}
.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.page-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* Page hero with solid neutral background (no image) */
.page-hero--solid {
    background: var(--bg-alt);
    color: var(--primary);
    height: 25vh;
    min-height: 180px;
}
.page-hero--solid h1 {
    color: var(--primary);
}

/* ============================================
   ABOUT LAYOUT (photo + text side by side)
   ============================================ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    align-items: start;
}
.about-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.about-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.about-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.btn-cta--outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-cta--outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 999;
    }
    .menu-container.open { right: 0; }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links a { font-size: 0.85rem; }

    .hamburger { display: flex; }

    .hero-content h1 { font-size: 1.8rem; }
    .hero { height: 70vh; }

    .contacto-container { grid-template-columns: 1fr; }
    .proyectos-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .servicio-block { grid-template-columns: 1fr; }
    .servicio-block:nth-child(even) .servicio-img { order: 1; }
    .servicio-block:nth-child(even) .servicio-text { order: 2; }
    .servicio-img { height: 300px; }
    .servicio-text { padding: 2.5rem; }

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

    .solucion-gallery { grid-template-columns: 1fr 1fr; }

    .about-layout { grid-template-columns: 1fr; gap: 2rem; }
    .proyecto-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .servicios-mini { grid-template-columns: 1fr 1fr; }
    .soluciones-preview { grid-template-columns: 1fr; }
    .proyecto-card { height: 280px; }
    .form-section { padding: 2rem 1.5rem; }
    .solucion-gallery { grid-template-columns: 1fr; }
    .solucion-gallery img { height: 220px; }
    .footer-legal { flex-direction: column; align-items: center; gap: 0.8rem; }
    .proyecto-gallery { grid-template-columns: 1fr; }
    .proyecto-gallery-item img { height: 250px; }
}

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

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
}
.nav-overlay.active { display: block; }
