/* ============================================
   ESTILOS GLOBALES Y BASE
   ============================================ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #2c2c2c;
    min-height: 100vh;
    background-color: #f6f3ec;
    background-image:
        radial-gradient(1100px 620px at 12% -8%, rgba(201, 162, 75, 0.18) 0%, rgba(201, 162, 75, 0) 60%),
        radial-gradient(900px 540px at 100% 0%, rgba(20, 20, 20, 0.06) 0%, rgba(20, 20, 20, 0) 55%),
        linear-gradient(160deg, #faf7f0 0%, #f3eee2 45%, #f8f3e8 75%, #f4efe3 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   TOP BAR - CONTACTO Y REDES SOCIALES
   ============================================ */
.top-bar-blue {
    background-color: #141414;
    color: #fff;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 1rem;
    min-height: 44px;
}

.top-bar-inner .top-bar-left { flex: 1; }
.top-bar-inner .top-bar-right { flex: 1; display: flex; justify-content: flex-end; }

.top-contacts { 
    list-style: none; 
    display: flex; 
    gap: 0.9rem; 
    align-items: center; 
    margin: 0; 
    padding: 0; 
    flex-wrap: wrap;
}

.top-contacts li { display: inline-flex; }

.top-contacts a { 
    color: #fff; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.25rem 0.5rem; 
    border-radius: 6px; 
    transition: background-color 180ms ease, transform 180ms ease;
    will-change: transform, background-color;
}

.top-contacts a .icon { 
    font-size: 16px; 
    line-height: 1; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

.top-contacts a .text { font-size: 0.95rem; }

.top-contacts a:hover, 
.top-contacts a:focus { 
    background-color: rgba(0,0,0,0.04); 
    transform: translateY(-2px); 
}

.top-contacts .social {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #f3e6c4;
    font-weight: 600;
    border: 1px solid rgba(201, 162, 75, 0.55);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.top-contacts a:hover .social,
.top-contacts a:focus .social {
    background: linear-gradient(135deg, #d9b85f 0%, #c9a24b 100%);
    color: #141414;
    border-color: #c9a24b;
}

.top-contacts a.whatsapp .icon { 
    width: 20px; 
    height: 20px; 
    display: inline-flex; 
}

.top-contacts a.whatsapp .icon svg { display: block; }

@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 0.4rem; }
    .top-bar-inner .top-bar-right { width: 100%; }
    .top-contacts { justify-content: center; gap: 0.6rem; }
}

/* ============================================
   HEADER PRINCIPAL — WARM SPLIT
   ============================================ */
.header {
    display: flex;
    align-items: stretch;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
    min-height: 72px;
}

/* Zona izquierda — negra, contiene el logo */
.header-logo-zone {
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 28px;
    flex-shrink: 0;
}

.header-logo-zone .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 56px;
    padding: 4px 6px;
    background: #fff;
    border-radius: 6px;
}

.header-logo-zone .logo img {
    height: 100%;
    max-width: 180px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* Zona derecha — blanca, nav + CTA */
.header-nav-zone {
    background-color: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;
    gap: 20px;
    border-left: 3px solid #c9a24b;
}

.header .nav {
    display: flex;
    align-items: center;
}

.header .nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header .nav a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    letter-spacing: 0.01em;
}

.header .nav a:hover {
    color: #1a1a1a;
    border-bottom-color: #c9a24b;
}

.nav-link-active {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    border-bottom-color: #c9a24b !important;
}

/* Botón CTA "Pedir visita" */
.header-cta {
    background: #c9a24b;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
}

.header-cta:hover {
    background: #d9b85f;
    transform: translateY(-1px);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 11px 20px;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: none !important;
    padding-bottom: 11px !important;
}

.dropdown-item:hover {
    background-color: #f9f6f0;
    color: #9a7230;
}

.dropdown-item:first-child { border-radius: 8px 8px 0 0; }
.dropdown-item:last-child  { border-radius: 0 0 8px 8px; }

@media (max-width: 900px) {
    .header-logo-zone { padding: 0 16px; }
    .header-nav-zone  { padding: 0 16px; gap: 12px; }
    .header .nav ul   { gap: 16px; }
    .header-logo-zone .logo img { max-width: 140px; }
}

@media (max-width: 640px) {
    .header { flex-direction: column; min-height: auto; }
    .header-logo-zone { width: 100%; padding: 10px 16px; justify-content: center; }
    .header-nav-zone  { width: 100%; border-left: none; border-top: 3px solid #c9a24b; justify-content: center; padding: 10px 16px; flex-wrap: wrap; }
    .header .nav ul   { gap: 12px; flex-wrap: wrap; justify-content: center; }
}

/* ============================================
   SECCIÓN HERO CON IMAGEN
   ============================================ */
.hero-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SECCIÓN SOBRE NOSOTROS
   ============================================ */
.about-section {
    padding: 60px 0;
    background-color: transparent;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: #141414;
    border-bottom: 4px solid #c9a24b;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 700;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(201, 162, 75, 0.12);
}

.feature-icon {
    display: block;
    font-size: 2rem;
    color: #c9a24b;
    margin-bottom: 12px;
    font-weight: bold;
}

.feature h4 {
    font-size: 1.3rem;
    color: #141414;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature p {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3c97a 0%, #c9a24b 100%);
    color: #141414;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    padding: 14px 30px;
    min-width: 250px;
    height: 54px;
    border: 1px solid rgba(201, 162, 75, 0.6);
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 26px rgba(201, 162, 75, 0.28);
    transition: all 0.25s ease;
}

.btn-cta:hover {
    background: #141414;
    color: #e9d59a;
    border-color: #141414;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(20, 20, 20, 0.25);
}

/* ============================================
   SERVICIOS GRID (8 apartados)
   ============================================ */
.services-section {
    padding: 40px 0 60px 0;
    background: transparent;
}

.services-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 48px;
    color: #141414;
    border-bottom: 4px solid #c9a24b;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.09);
    padding: 28px 22px 22px 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 360px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(201, 162, 75, 0.15);
    background: #fff;
}

.service-card img {
    width: 100%;
    max-width: 260px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    align-self: center;
}

.service-card h3 {
    margin: 12px 0 14px 0;
    color: #141414;
    font-size: 1.35rem;
    font-weight: 700;
    border-bottom: 3px solid #c9a24b;
    padding-bottom: 8px;
}

.service-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 0.98rem;
}

.service-card ul li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.service-card ul li:before {
    content: "▪";
    color: #c9a24b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: 0;
        padding: 16px 8px 12px 8px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer { 
    background: #141414;
    color: #fff; 
    text-align: center; 
    padding: 3rem 0; 
}

.footer p {
    font-size: 0.95rem;
    margin: 0;
}

.footer a { 
    color: #d9bf83;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

/* ============================================
   SECCIÓN FINANCIACIÓN
   ============================================ */
.financing-section {
    background: transparent;
    padding: 40px 0;
    overflow: hidden;
}

.financing-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 50%;         /* 25% reducción por cada lado = 50% del ancho total */
    margin: 0 auto;         /* centrado */
    padding: 0;
    height: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(20, 20, 20, 0.10);
}

.financing-image {
    flex: 0 0 45%;
    width: 45%;
    height: auto;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    margin-right: 0;
    display: block;
}

.financing-text {
    flex: 0 0 55%;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 42px;
    background: linear-gradient(135deg, #faf7f0 0%, #efe8d8 100%);
}

.financing-text h2 {
    font-size: 1.9rem;
    color: #141414;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.financing-highlight {
    font-size: 1.15rem;
    color: #c9a24b;
    font-weight: 700;
    margin-bottom: 14px;
}

.financing-description {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 24px;
}

.btn-financing {
    display: inline-block;
    background: linear-gradient(135deg, #e3c97a 0%, #c9a24b 100%);
    color: #141414;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 162, 75, 0.6);
    width: fit-content;
}

.btn-financing:hover {
    background: #141414;
    color: #e9d59a;
    border-color: #141414;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 20, 20, 0.2);
}

@media (max-width: 1200px) {
    .financing-content {
        max-width: 72%;
    }
}

@media (max-width: 992px) {
    .financing-content {
        max-width: 88%;
    }

    .financing-text {
        padding: 30px 32px;
    }

    .financing-text h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .financing-section {
        padding: 28px 0;
    }

    .financing-content {
        flex-direction: column;
        max-width: 92%;
        border-radius: 16px;
    }

    .financing-image {
        flex: 0 0 100%;
        width: 100%;
        height: 220px;
        margin-right: 0;
    }

    .financing-text {
        flex: 0 0 100%;
        width: 100%;
        padding: 28px 22px;
    }

    .financing-text h2 {
        font-size: 1.55rem;
    }

    .financing-highlight {
        font-size: 1.05rem;
    }

    .financing-description {
        font-size: 0.93rem;
    }
}

/* ============================================
   GALERÍA / CAROUSEL
   ============================================ */
.kitchen-gallery {
    background: transparent;
    padding: 100px 0;
    text-align: center;
}

.kitchen-gallery h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 700;
}

.gallery-subtitle {
    font-size: 1.15rem;
    color: #777;
    margin-bottom: 40px;
    font-weight: 500;
}

.kitchen-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    color: white;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    color: #222;
    font-size: 28px;
    padding: 15px 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 300ms ease;
    will-change: background-color, transform;
}

.carousel-button:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #666;
    background: transparent;
    cursor: pointer;
    transition: all 300ms ease;
    padding: 0;
}

.dot.active {
    background: #333;
    border-color: #333;
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    border-color: #333;
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .kitchen-gallery {
        padding: 60px 0;
    }
    .kitchen-gallery h2 {
        font-size: 1.8rem;
    }
    .carousel-wrapper {
        height: 300px;
    }
    .carousel-button {
        padding: 12px 15px;
        font-size: 22px;
    }
    .carousel-button.prev {
        left: 10px;
    }
    .carousel-button.next {
        right: 10px;
    }
    .carousel-caption {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}
/* ============================================
   SECCIÓN CONTACTO
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: transparent;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #141414;
    border-bottom: 4px solid #c9a24b;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.contact-form {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #141414;
    font-size: 0.95rem;
}

.required {
    color: #c9a24b;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e7e0d0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #2c2c2c;
    background: #fff;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c9a24b;
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Botón adjuntar archivos */
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px dashed #c9a24b;
    color: #c9a24b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 200ms ease;
    width: fit-content;
}

.file-upload-btn:hover {
    background: #f4efe4;
    border-color: #141414;
    color: #141414;
}

.file-upload-btn svg {
    flex-shrink: 0;
}

.file-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.file-btn-text {
    display: block;
    font-size: 0.95rem;
    color: inherit;
}

.file-btn-hint {
    display: none;
}

.file-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
}

.file-input-hidden {
    display: none;
}

.file-list-container {
    margin-top: 16px;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-list li {
    font-size: 0.85rem;
    color: #2c2c2c;
    background: #fff;
    border: 1px solid #ebe4d4;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 150ms ease;
    word-break: break-word;
}

.file-list li:hover {
    border-color: #c9a24b;
    box-shadow: 0 2px 6px rgba(201, 162, 75, 0.1);
}

.file-list li::before {
    content: "";
    font-size: 14px;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 150ms ease;
}

.file-remove-btn:hover {
    color: #e74c3c;
}

/* Botón enviar */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3c97a 0%, #c9a24b 100%);
    color: #141414;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 40px;
    border: 1px solid rgba(201, 162, 75, 0.6);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(201, 162, 75, 0.25);
    transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #141414;
    color: #e9d59a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.28);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .btn-submit {
        width: 100%;
    }
}
a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}


#servicios,
#quienes-somos,
#contacto,
#inicio {
    scroll-margin-top: 150px;
}

/* ============================================
   PÁGINAS LEGALES (Aviso legal / Privacidad)
   ============================================ */
.legal-page {
    padding: 60px 0 80px;
    background: #fff;
}

.legal-page .container {
    max-width: 900px;
}

.legal-page h1 {
    font-size: 2.4rem;
    color: #141414;
    border-bottom: 4px solid #c9a24b;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 8px;
    font-weight: 700;
}

.legal-updated {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.4rem;
    color: #141414;
    margin: 34px 0 12px;
    font-weight: 700;
}

.legal-page h3 {
    font-size: 1.1rem;
    color: #141414;
    margin: 20px 0 8px;
    font-weight: 600;
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
}

.legal-page p {
    margin-bottom: 14px;
}

.legal-page ul {
    margin: 0 0 14px 0;
    padding-left: 22px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: #c9a24b;
    text-decoration: none;
    font-weight: 600;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-data {
    background: #f6f2e9;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0 24px;
    list-style: none;
}

.legal-data li {
    margin-bottom: 6px;
}

.legal-note {
    background: #fff6f0;
    border-left: 4px solid #c9a24b;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: #6b4a36;
}

@media (max-width: 600px) {
    .legal-page h1 { font-size: 1.8rem; }
}


/* ============================================
   PÁGINA CALCULAR PRECIO - ASISTENTE IA
   ============================================ */
.nav-link-active {
    color: #8a6d2f !important;
    border-bottom-color: #8a6d2f !important;
}

.budget-ai-hero {
    background: linear-gradient(135deg, #f8f5ee 0%, #ffffff 55%, #f2ede3 100%);
    padding: 72px 0 48px;
}

.budget-ai-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.budget-ai-tag {
    display: inline-block;
    background: rgba(201, 162, 75, 0.14);
    color: #8a6d2f;
    border: 1px solid rgba(201, 162, 75, 0.25);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.budget-ai-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.12;
    color: #141414;
    margin-bottom: 20px;
}

.budget-ai-copy p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin-bottom: 24px;
}

.budget-ai-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.budget-ai-points li {
    position: relative;
    padding-left: 28px;
    color: #2c2c2c;
    font-weight: 600;
}

.budget-ai-points li::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 0;
    color: #c9a24b;
    font-size: 1.2rem;
}

.budget-ai-summary-card,
.sidepanel-card,
.chat-widget-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 162, 75, 0.16);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
}

.budget-ai-summary-card {
    padding: 32px;
}

.budget-ai-summary-card h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #141414;
}

.summary-item + .summary-item {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.summary-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #2c2c2c;
}

.summary-item span {
    color: #666;
    line-height: 1.6;
}

.budget-ai-chat-section {
    padding: 48px 0 80px;
    background: #fcfaf6;
}

.budget-ai-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: start;
}

.chat-widget-card {
    padding: 28px;
}

.chat-widget-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.chat-widget-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6d2f;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.chat-widget-header h2 {
    font-size: 1.7rem;
    color: #141414;
    margin: 0;
}

.chat-widget-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef7ee;
    color: #2d6a35;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 10px 14px;
    white-space: nowrap;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 420px;
    max-height: 720px;
    overflow-y: auto;
    padding: 10px 6px 10px 0;
    margin-bottom: 20px;
}

.chat-message {
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(88%, 720px);
    padding: 16px 18px;
    border-radius: 18px;
    line-height: 1.7;
    font-size: 1rem;
}

.chat-message.bot .chat-bubble {
    background: #f4efe5;
    color: #2d2d2d;
    border-top-left-radius: 6px;
}

.chat-message.user .chat-bubble {
    background: #1f1f1f;
    color: #fff;
    border-top-right-radius: 6px;
}

.chat-choices {
    margin-bottom: 18px;
}

.choice-pill,
.choice-confirm,
.btn-budget-contact,
.btn-copy-summary,
.chat-input-area button {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.choice-pill {
    display: inline-flex;
    margin: 0 10px 10px 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.12);
    color: #2d2d2d;
}

.choice-pill:hover,
.choice-confirm:hover,
.btn-budget-contact:hover,
.btn-copy-summary:hover,
.chat-input-area button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(20, 20, 20, 0.10);
}

.multi-choice-box {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.multi-choice-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 12px;
    background: #fff;
    color: #333;
    line-height: 1.5;
}

.multi-choice-item input {
    margin-top: 4px;
}

.choice-confirm,
.chat-input-area button,
.btn-budget-contact {
    background: #8a6d2f;
    color: #fff;
    padding: 14px 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-summary {
    background: #141414;
    color: #fff;
    padding: 14px 18px;
}

.chat-input-area {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.chat-input-area input {
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(20, 20, 20, 0.12);
    padding: 0 16px;
    font-size: 1rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #8a6d2f;
    box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.14);
}

.budget-ai-sidepanel {
    display: grid;
    gap: 18px;
}

.sidepanel-card {
    padding: 24px;
}

.sidepanel-card h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #141414;
}

.sidepanel-card p,
.sidepanel-card li {
    color: #666;
    line-height: 1.7;
}

.sidepanel-card ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.sidepanel-highlight {
    background: linear-gradient(180deg, #fffdf9 0%, #f7f0df 100%);
}

.budget-result-box {
    margin-top: 20px;
    padding: 24px;
    border-radius: 18px;
    background: #fffaf0;
    border: 1px solid rgba(201, 162, 75, 0.2);
}

.budget-result-box h3 {
    margin-bottom: 16px;
    color: #141414;
}

.budget-result-box ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #444;
}

.budget-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

@media (max-width: 992px) {
    .budget-ai-hero-grid,
    .budget-ai-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .budget-ai-hero {
        padding: 56px 0 32px;
    }

    .chat-widget-header {
        flex-direction: column;
    }

    .chat-input-area {
        grid-template-columns: 1fr;
    }

    .chat-bubble {
        max-width: 100%;
    }

    .budget-result-actions {
        flex-direction: column;
    }

    .btn-budget-contact,
    .btn-copy-summary,
    .chat-input-area button,
    .choice-confirm {
        width: 100%;
    }
}


.budget-category-section {
    padding: 12px 0 42px;
    background: #fcfaf6;
}

.budget-category-header {
    margin-bottom: 22px;
}

.budget-category-header h2 {
    font-size: 2rem;
    color: #141414;
    margin-bottom: 10px;
}

.budget-category-header p {
    color: #666;
    line-height: 1.7;
    max-width: 720px;
}

.budget-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.budget-category-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 190px;
    width: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(20, 20, 20, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.budget-category-card:hover,
.budget-category-card.is-selected,
.budget-category-card.active,
.budget-category-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(20, 20, 20, 0.1);
    border-color: rgba(201, 162, 75, 0.55);
}

.budget-category-card--accent {
    background: linear-gradient(180deg, #fffdf9 0%, #f6eedc 100%);
}

.category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(201, 162, 75, 0.14);
    font-size: 1.5rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.budget-category-card strong {
    display: block;
    font-size: 1.08rem;
    color: #141414;
    margin-bottom: 8px;
    line-height: 1.3;
}

.budget-category-card small {
    display: block;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.personal-budget-banner {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #f4ebd5 100%);
    border: 1px solid rgba(201, 162, 75, 0.35);
}

.personal-budget-banner h3 {
    color: #141414;
    margin-bottom: 8px;
}

.personal-budget-banner p {
    color: #5f5641;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .budget-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .budget-category-card {
        min-height: 176px;
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .budget-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .budget-category-card {
        min-height: 158px;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .category-card-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 12px;
        font-size: 1.3rem;
    }

    .budget-category-card strong {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .budget-category-card small {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 560px) {
    .budget-category-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .budget-category-card {
        min-height: auto;
        padding: 16px 14px;
        border-radius: 14px;
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 12px;
        align-items: start;
    }

    .category-card-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 0;
        border-radius: 12px;
        font-size: 1.15rem;
    }

    .budget-category-card strong,
    .budget-category-card small {
        grid-column: 2;
    }

    .budget-category-card strong {
        margin-top: 2px;
    }
}


.editable-summary-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-edit-answer {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(20, 20, 20, 0.12);
    background: #fff;
    color: #141414;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-answer:hover {
    border-color: rgba(201, 162, 75, 0.55);
    color: #8b6a22;
    transform: translateY(-1px);
}


.btn-reset-assistant {
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(20, 20, 20, 0.14);
    background: #f8f6f1;
    color: #141414;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-assistant:hover {
    background: #efe8d8;
    border-color: rgba(201, 162, 75, 0.55);
    transform: translateY(-1px);
}


.pdf-client-panel {
    margin-top: 18px;
    padding: 22px;
    border-radius: 18px;
    background: #fffdf8;
    border: 1px solid rgba(201, 162, 75, 0.22);
}

.pdf-client-panel h3 {
    margin-bottom: 8px;
    color: #141414;
}

.pdf-client-panel > p {
    color: #5f5641;
    line-height: 1.7;
    margin-bottom: 18px;
}

.pdf-client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pdf-client-grid label,
.pdf-privacy-check {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-client-grid span,
.pdf-privacy-check span {
    color: #2c2c2c;
    font-weight: 600;
}

.pdf-client-grid input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(20, 20, 20, 0.14);
    background: #fff;
}

.pdf-privacy-check {
    margin-top: 16px;
    flex-direction: row;
    align-items: flex-start;
}

.pdf-privacy-check input {
    margin-top: 3px;
}

.pdf-client-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-generate-pdf {
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: #c9a24b;
    color: #141414;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(201, 162, 75, 0.25);
}

.btn-generate-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(201, 162, 75, 0.3);
}

.pdf-client-help {
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .pdf-client-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ Asistente integrado (Opción C): categorías dentro del chat ═══ */
.chat-cat-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.chat-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 14px 8px 12px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chat-cat-tile:hover,
.chat-cat-tile:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 75, 0.6);
    box-shadow: 0 10px 22px rgba(20, 20, 20, 0.08);
}

.chat-cat-icon { font-size: 1.55rem; line-height: 1; }

.chat-cat-tile strong {
    font-size: 0.88rem;
    color: #141414;
    line-height: 1.25;
}

.chat-cat-tile small {
    font-size: 0.74rem;
    color: #888;
    line-height: 1.3;
}

.chat-cat-tile--accent {
    background: linear-gradient(180deg, #fffdf9 0%, #f6eedc 100%);
    border-color: rgba(201, 162, 75, 0.45);
}

.chat-cat-tile--recover {
    background: linear-gradient(180deg, #f7f5f1 0%, #eeebe5 100%);
    border-color: rgba(110, 110, 100, 0.25);
    grid-column: 1 / -1;
}
.chat-cat-tile--recover strong { color: var(--color-text-muted, #7a7974); }
.chat-cat-tile--recover .chat-cat-icon { font-size: 1.1rem; }

@media (max-width: 560px) {
    .chat-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Barra de progreso del asistente */
.chat-progress { margin: 12px 0 2px; }

.chat-progress-label {
    display: block;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 6px;
}

.chat-progress-track {
    height: 6px;
    background: rgba(20, 20, 20, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.chat-progress-fill {
    height: 100%;
    width: 6%;
    background: var(--color-primary, #01696f);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Estimación en vivo */
.chat-live-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(1, 105, 111, 0.25);
    background: rgba(1, 105, 111, 0.06);
    border-radius: 12px;
}

.chat-live-total span { font-size: 0.85rem; color: #555; }

.chat-live-total strong {
    color: var(--color-primary, #01696f);
    font-size: 1.12rem;
    white-space: nowrap;
}

/* ═══ HERO con titular y CTAs ═══ */
.hero-image { position: relative; }

.hero-image img { max-height: 620px; object-fit: cover; }

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(10, 24, 34, 0.66) 0%, rgba(10, 24, 34, 0.38) 55%, rgba(10, 24, 34, 0.12) 100%);
}

.hero-overlay-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.hero-overlay h1 {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 14px;
    max-width: 620px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero-overlay p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    margin-bottom: 26px;
    max-width: 560px;
}

.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero-primary {
    background: #c9a24b;
    color: #141414;
    box-shadow: 0 8px 24px rgba(201, 162, 75, 0.45);
}

.btn-hero-primary:hover { background: #d8b35e; transform: translateY(-2px); }

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
}

.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }

@media (max-width: 640px) {
    .hero-image img { min-height: 380px; }
    .hero-overlay { background: linear-gradient(180deg, rgba(10,24,34,0.30) 0%, rgba(10,24,34,0.66) 100%); align-items: flex-end; padding-bottom: 30px; }
}

/* ═══ Banner CTA calculadora ═══ */
.calc-cta-section {
    margin: 10px 0 40px;
    padding: 0 5%;
}

.calc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #01696f 0%, #0a4d52 100%);
    border-radius: 20px;
    padding: 34px 38px;
    box-shadow: 0 16px 40px rgba(1, 105, 111, 0.25);
}

.calc-cta-text h2 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }

.calc-cta-text p { color: rgba(255, 255, 255, 0.85); max-width: 560px; line-height: 1.6; }

@media (max-width: 720px) {
    .calc-cta-inner { padding: 26px 22px; }
}

/* ═══ Ajuste tarjetas de servicio ═══ */
.service-card img {
    max-width: none;
    height: 150px;
    border-radius: 12px;
}

.service-card { min-height: 0; }

/* ═══ Hero: texto a la derecha (familia visible a la izquierda) ═══ */
.hero-overlay {
    background: linear-gradient(270deg, rgba(10, 24, 34, 0.72) 0%, rgba(10, 24, 34, 0.40) 48%, rgba(10, 24, 34, 0.04) 100%);
    justify-content: flex-end;
}

.hero-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.hero-overlay h1,
.hero-overlay p { max-width: 540px; }

.hero-cta-group { justify-content: flex-end; }

@media (max-width: 640px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(10,24,34,0.18) 0%, rgba(10,24,34,0.70) 100%);
    }
    .hero-overlay-inner { align-items: center; text-align: center; }
    .hero-cta-group { justify-content: center; }
}

/* ═══ Financiación: tarjeta más amplia y equilibrada ═══ */
.financing-content {
    max-width: 980px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(20, 20, 20, 0.13);
    border: 1px solid rgba(201, 162, 75, 0.25);
}

.financing-image {
    flex: 0 0 44%;
    width: 44%;
    min-height: 340px;
}

.financing-text {
    padding: 44px 48px;
}

.financing-text h2 {
    font-size: 2.1rem;
}

.financing-text h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: #c9a24b;
    border-radius: 999px;
    margin-top: 10px;
}

.financing-highlight { margin-top: 6px; }

@media (max-width: 900px) {
    .financing-content { max-width: 92%; flex-direction: column; }
    .financing-image, .financing-text { width: 100%; flex: 1 1 auto; }
    .financing-image { min-height: 220px; max-height: 280px; }
    .financing-text { padding: 28px 24px; }
}

/* ═══ Galería "Nuestras obras": más elegante ═══ */
.kitchen-gallery { padding: 70px 0; }

.kitchen-gallery h2 { font-size: 2.2rem; }

.kitchen-gallery h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: #c9a24b;
    border-radius: 999px;
    margin: 12px auto 0;
}

.gallery-subtitle { margin-bottom: 32px; }

.carousel-wrapper {
    height: 440px;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.carousel-caption {
    left: 20px;
    right: auto;
    bottom: 20px;
    background: rgba(10, 24, 34, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.carousel-button {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    font-size: 20px;
    padding: 12px 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.carousel-dots .dot {
    background: rgba(20, 20, 20, 0.18);
}

.carousel-dots .dot.active {
    background: #c9a24b;
}

@media (max-width: 640px) {
    .carousel-wrapper { height: 300px; }
    .carousel-caption { left: 12px; bottom: 12px; padding: 8px 16px; font-size: 0.9rem; }
}

/* ═══ Contacto: tarjetas de contacto directo + formulario en tarjeta ═══ */
.contact-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: start;
}

.contact-aside {
    display: grid;
    gap: 14px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 162, 75, 0.25);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px rgba(20, 20, 20, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(201, 162, 75, 0.16);
}

.contact-card-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }

.contact-card h3 {
    font-size: 1.02rem;
    color: #141414;
    margin-bottom: 4px;
}

.contact-card a {
    color: #01696f;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.02rem;
}

.contact-card a:hover { text-decoration: underline; }

.contact-card small {
    display: block;
    color: #888;
    margin-top: 4px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.contact-card p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 20, 20, 0.06);
    border-radius: 20px;
    padding: 34px 36px;
    box-shadow: 0 16px 40px rgba(20, 20, 20, 0.08);
    max-width: none;
}

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-aside { grid-template-columns: repeat(2, 1fr); }
    .contact-form { padding: 26px 20px; }
}

@media (max-width: 560px) {
    .contact-aside { grid-template-columns: 1fr; }
}

/* ═══ Carrusel "Nuestras Reformas": chips y efecto suave ═══ */
.carousel-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
}

.caption-chip {
    background: #c9a24b;
    color: #141414;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.caption-text { font-size: 0.98rem; }

.carousel-item img {
    transform: scale(1.06);
    transition: transform 4.5s ease-out;
}

.carousel-item.is-active img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
    .carousel-item img { transform: none; transition: none; }
}

.carousel-dots {
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.carousel-dots .dot.active { width: 26px; }

@media (max-width: 640px) {
    .carousel-caption { flex-wrap: wrap; gap: 6px; }
    .caption-text { font-size: 0.85rem; }
}

/* ═══ Calculadora: panel derecho rediseñado ═══ */
@media (min-width: 1025px) {
    .budget-ai-sidepanel { position: sticky; top: 96px; align-self: start; }
}

.steps-visual {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}

.steps-visual li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 18px;
}

.steps-visual li:last-child { padding-bottom: 0; }

.steps-visual li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: 2px;
    width: 2px;
    background: linear-gradient(180deg, rgba(1,105,111,.35), rgba(201,162,75,.35));
}

.steps-visual li:last-child::before { display: none; }

.step-dot {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--color-primary, #01696f);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(1, 105, 111, 0.3);
}

.steps-visual strong { display: block; color: #141414; font-size: 0.98rem; margin-bottom: 2px; }

.steps-visual small { color: #777; font-size: 0.86rem; line-height: 1.5; display: block; }

.sidepanel-personalizado {
    background: linear-gradient(160deg, #fffdf8 0%, #f6ecd4 100%);
    border: 1px solid rgba(201, 162, 75, 0.45);
    position: relative;
    overflow: hidden;
}

.pp-spark {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.6rem;
    opacity: 0.85;
}

.btn-pp-activate {
    margin-top: 14px;
    width: 100%;
    padding: 12px 18px;
    background: #141414;
    color: #f3e3b8;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-pp-activate:hover {
    background: #01696f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(1, 105, 111, 0.3);
}

.sidepanel-cta-group {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sidepanel-cta-group .btn-whatsapp-budget { justify-content: center; margin-top: 0; }

/* ═══ Panel de compartir el PDF ═══ */
.pdf-share-panel {
    background: #fff;
    border: 1px solid rgba(1, 105, 111, 0.25);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(1, 105, 111, 0.10);
}

.pdf-share-title { font-size: 0.98rem; color: #222; margin-bottom: 12px; }

.pdf-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.share-down   { background: #01696f; color: #fff; box-shadow: 0 5px 14px rgba(1,105,111,.35); }
.share-native { background: #141414; color: #f3e3b8; }
.share-wa     { background: #25d366; color: #fff; box-shadow: 0 5px 14px rgba(37,211,102,.35); }
.share-tg     { background: #2aabee; color: #fff; box-shadow: 0 5px 14px rgba(42,171,238,.35); }
.share-mail   { background: #f1ede3; color: #4a4536; border: 1px solid rgba(20,20,20,.12); }

.pdf-share-hint { font-size: 0.82rem; color: #888; margin-top: 12px; line-height: 1.55; }

/* Campo con error de validación en el panel PDF */
.campo-invalido {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
    background: #fff7f6 !important;
}

/* ═══ Sección "Presupuesto inteligente" más ancha ═══ */
.budget-ai-chat-section .container {
    max-width: 1360px;
}

.budget-ai-layout {
    grid-template-columns: minmax(0, 2.7fr) minmax(260px, 0.85fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .budget-ai-layout { grid-template-columns: 1fr; }
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios-section {
    padding: 80px 0 70px;
    background: #faf8f4;
}

.testimonios-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #141414;
    margin-bottom: 10px;
}

.testimonios-subtitle {
    text-align: center;
    color: #777;
    font-size: 1rem;
    margin-bottom: 48px;
}

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

.testimonio-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 26px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 3px solid #c9a24b;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.testimonio-stars {
    color: #c9a24b;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonio-card blockquote {
    margin: 0;
    padding: 0;
    font-size: 0.97rem;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonio-card blockquote::before {
    content: '\201C';
    font-size: 2rem;
    color: #c9a24b;
    line-height: 0;
    vertical-align: -0.5rem;
    margin-right: 3px;
    font-style: normal;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0ebe0;
    padding-top: 16px;
}

.testimonio-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3c97a, #c9a24b);
    color: #141414;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonio-autor div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonio-autor strong {
    font-size: 0.95rem;
    color: #141414;
    font-weight: 700;
}

.testimonio-autor span {
    font-size: 0.82rem;
    color: #888;
}

.testimonios-cta-texto {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 12px;
}

.testimonios-cta-texto a {
    color: #c9a24b;
    font-weight: 700;
    text-decoration: none;
}

.testimonios-cta-texto a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonios-section { padding: 60px 0 50px; }
    .testimonios-section h2 { font-size: 1.7rem; }
    .testimonios-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MENÚ HAMBURGUESA Y NAV MÓVIL
   ============================================ */

/* Botón hamburguesa — oculto en escritorio */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 300ms ease, opacity 300ms ease;
    transform-origin: center;
}

/* Animación → X cuando el menú está abierto */
.header.nav-open .hamburger-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.header.nav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.header.nav-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Panel de navegación móvil — oculto en escritorio */
.mobile-nav-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    padding: 12px 0 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border-top: 1px solid #e9e2d0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-nav-panel.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Lista de enlaces móvil */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f4efe4;
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 24px;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:active {
    background: #f9f5eb;
    color: #c9a24b;
}

/* Categoría (ej: "Servicios") — texto no clicable */
.mobile-nav-category {
    padding: 12px 24px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #c9a24b;
    background: #faf8f2;
    border-bottom: none !important;
}

/* Sub-enlaces del dropdown de servicios */
.mobile-nav-sub {
    padding-left: 36px !important;
    font-weight: 500 !important;
    color: #444 !important;
    font-size: 0.95rem !important;
}

.mobile-nav-sub:hover {
    color: #c9a24b !important;
}

/* Botón CTA dentro del panel móvil */
.mobile-nav-cta {
    display: block;
    margin: 20px 24px 0;
    padding: 14px 20px;
    background: #c9a24b;
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background 200ms ease;
}

.mobile-nav-cta:hover {
    background: #b8912f;
}

/* Overlay oscuro detrás del panel */
.nav-open-overlay {
    display: none;
}

/* ── Media query: móvil (≤ 768px) ─────────── */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .hamburger-btn {
        display: flex;
    }

    /* Ocultar nav y CTA del header en escritorio */
    .header-nav-zone .nav,
    .header-nav-zone .header-cta {
        display: none;
    }

    /* Mostrar panel móvil */
    .mobile-nav-panel {
        display: block;
    }

    /* Ajustar padding del header-nav-zone en móvil */
    .header-nav-zone {
        padding: 0 16px;
        justify-content: flex-end;
    }

    .header-logo-zone {
        padding: 0 16px;
    }

    .header-logo-zone .logo {
        height: 44px;
    }
}


/* ====================================================================
   Calculador de precios · estética ligera (rediseño 2026)
   Aligera hero, tarjetas y barra lateral: menos peso visual, más foco
   en el asistente. Afecta solo a calcular-precio.html.
   ==================================================================== */
.budget-ai-hero{ background:#faf8f3; padding:44px 0 26px; }
.budget-ai-hero-inner{ max-width:780px; margin:0 auto; text-align:center; }
.budget-ai-hero-inner .budget-ai-tag{ margin-bottom:14px; }
.budget-ai-tag{ background:rgba(1,105,111,.08); color:#01696f; border:1px solid rgba(1,105,111,.18); font-size:.8rem; font-weight:600; padding:6px 14px; }
.budget-ai-hero-inner h1{ font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.15; letter-spacing:-.01em; color:#1a2422; margin-bottom:12px; }
.budget-ai-hero-inner p{ font-size:1.02rem; line-height:1.6; color:#5b5b56; max-width:620px; margin:0 auto; }

.budget-ai-chat-section{ padding:30px 0 64px; }
.budget-ai-layout{ gap:24px; align-items:start; }
.budget-ai-summary-card,.sidepanel-card,.chat-widget-card{ border:1px solid #ece6da; border-radius:14px; box-shadow:0 4px 16px rgba(20,20,20,.05); background:#fff; }
.chat-widget-card{ padding:22px 24px; }
.chat-widget-header{ margin-bottom:16px; }
.chat-widget-header h2{ font-size:1.2rem; }
.chat-widget-kicker{ font-size:.72rem; }

.budget-ai-sidepanel{ display:flex; flex-direction:column; gap:14px; }
.sidepanel-card{ padding:16px 18px; }
.sidepanel-card h3{ font-size:.98rem; margin-bottom:8px; }
.sidepanel-card p,.sidepanel-card li{ font-size:.88rem; line-height:1.55; }
.steps-visual strong{ font-size:.9rem; }
.steps-visual small{ font-size:.8rem; }
.personal-budget-banner{ border-radius:12px; }
