/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    background: #fcf9f2;
    color: #3e3a39;
    line-height: 1.6;
    scroll-behavior: smooth;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.btn {
    display: inline-block;
    background: #c9a84c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover {
    background: #b8953a;
    transform: scale(1.02);
}
.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1da851;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c2a29;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7a7572;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.gold-accent {
    color: #c9a84c;
}

/* ===== HEADER ===== */
header {
    background: #fffcf7;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo img {
    max-height: 55px;
    width: auto;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}
nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3e3a39;
    transition: color 0.3s;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s;
}
nav ul li a:hover {
    color: #c9a84c;
}
nav ul li a:hover::after {
    width: 100%;
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #3e3a39;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #fcf9f2 0%, #f5efe6 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    color: #5a5552;
    margin-bottom: 25px;
    font-weight: 300;
}
.hero-content .btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.hero-image picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SERVICIOS ===== */
.servicios {
    padding: 70px 0;
    background: #fffcf7;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 10px;
}
.servicio-card {
    background: #ffffff;
    padding: 30px 20px 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0ebe3;
}
.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}
.servicio-card .icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}
.servicio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2c2a29;
}
.servicio-card p {
    font-size: 0.95rem;
    color: #6b6663;
}

/* ===== SOBRE MÍ ===== */
.sobre-mi {
    padding: 70px 0;
    background: #f5efe6;
}
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}
.sobre-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.sobre-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.sobre-text p {
    margin-bottom: 15px;
    color: #4f4a47;
}
.sobre-text .firma {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #c9a84c;
    margin-top: 10px;
}

/* ===== TESTIMONIOS: CARRUSEL 3 EN 3 ===== */
.testimonios {
    padding: 70px 0;
    background: #fffcf7;
}
.testimonio-carrusel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.carrusel-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.carrusel-btn {
    background: #c9a84c;
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.carrusel-btn:hover {
    background: #b8953a;
    transform: scale(1.05);
}
.carrusel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}
.carrusel-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 20px;
}
.carrusel-slide {
    flex: 0 0 calc(33.333% - 13.33px); /* 3 por fila, restando el gap */
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid #f0ebe3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.carrusel-slide .stars {
    color: #c9a84c;
    letter-spacing: 2px;
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.carrusel-slide blockquote {
    font-style: italic;
    margin: 10px 0 8px;
    color: #3e3a39;
    font-size: 1rem;
    max-width: 100%;
}
.carrusel-slide .autor {
    font-weight: 600;
    color: #2c2a29;
    margin-bottom: 10px;
}
.carrusel-slide audio {
    width: 100%;
    max-width: 200px;
    margin-top: 8px;
    border-radius: 30px;
}
.carrusel-indicador {
    text-align: center;
    margin-top: 18px;
    font-weight: 600;
    color: #7a7572;
    font-size: 0.95rem;
}

/* ===== BLOG ===== */
.blog {
    padding: 70px 0;
    background: #f5efe6;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.blog-card {
    background: #fffcf7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    border: 1px solid #f0ebe3;
}
.blog-card:hover {
    transform: translateY(-4px);
}
.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-card .blog-body {
    padding: 20px 20px 25px;
}
.blog-card .blog-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.blog-card .blog-body p {
    color: #6b6663;
    font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq {
    padding: 70px 0;
    background: #fffcf7;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e8e2da;
    padding: 18px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #2c2a29;
    transition: color 0.3s;
}
.faq-question:hover {
    color: #c9a84c;
}
.faq-question .icono {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-item.open .faq-question .icono {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 0 0 10px;
    color: #5a5552;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 12px 0 0 10px;
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 70px 0;
    background: #f5efe6;
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.contacto-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.contacto-info p {
    margin-bottom: 20px;
    color: #4f4a47;
}
.contacto-info .telefono {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c2a29;
    display: inline-block;
    margin: 10px 0 15px;
}
.contacto-info .telefono span {
    color: #c9a84c;
}
.contacto-info .btn {
    margin-top: 10px;
}
.contacto-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===== FOOTER ===== */
footer {
    background: #2c2a29;
    color: #d4cfca;
    padding: 50px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-grid h4 {
    color: #f5efe6;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.footer-grid p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-grid ul {
    list-style: none;
}
.footer-grid ul li {
    margin-bottom: 8px;
}
.footer-grid ul li a {
    color: #d4cfca;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.footer-grid ul li a:hover {
    color: #c9a84c;
}
.footer-bottom {
    border-top: 1px solid #3e3a39;
    padding-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.footer-bottom .disclaimer {
    font-size: 0.8rem;
    color: #a09890;
    max-width: 700px;
    font-style: italic;
}
.footer-bottom .legal-links a {
    margin-left: 20px;
    color: #d4cfca;
    transition: color 0.3s;
}
.footer-bottom .legal-links a:hover {
    color: #c9a84c;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px 12px 16px;
    border-radius: 60px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}
.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}
.whatsapp-float .icon {
    font-size: 1.8rem;
    line-height: 1;
}
.whatsapp-float .text {
    white-space: nowrap;
}
.whatsapp-float .pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== BANNER COOKIES RGPD ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c2a29;
    color: #d4cfca;
    padding: 18px 25px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 25px;
    font-size: 0.95rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #c9a84c;
    transition: transform 0.5s ease;
}
.cookie-banner.hidden {
    transform: translateY(100%);
}
.cookie-banner p {
    margin: 0;
    flex: 1 1 300px;
}
.cookie-banner p a {
    color: #c9a84c;
    text-decoration: underline;
}
.cookie-banner .btn-cookie {
    background: #c9a84c;
    color: #2c2a29;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.95rem;
}
.cookie-banner .btn-cookie:hover {
    background: #b8953a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content .btn-group {
        justify-content: center;
    }
    .sobre-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .carrusel-slide {
        flex: 0 0 calc(50% - 10px); /* 2 por fila en tablet */
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fffcf7;
        padding: 15px 0;
        gap: 12px;
        border-top: 1px solid #f0ebe3;
        margin-top: 15px;
    }
    nav ul.open {
        display: flex;
    }
    nav ul li a {
        font-size: 1rem;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom .legal-links a {
        margin: 0 10px;
    }
    .whatsapp-float .text {
        display: none;
    }
    .whatsapp-float {
        padding: 14px;
        border-radius: 60px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float .icon {
        font-size: 2rem;
    }
    .carrusel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .carrusel-slide {
        flex: 0 0 calc(100% - 0px); /* 1 por fila en móvil */
    }
    .carrusel-wrapper {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
    .cookie-banner {
        padding: 15px;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
    }
    .carrusel-slide blockquote {
        font-size: 0.95rem;
    }
}