/* ====== Reset básico ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background-color: #fdfaf7; /* fondo marfil suave */
}

/* ====== Utilidades ====== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-cta,
.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ====== Header ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
    transition: padding 0.25s ease;
}

/* estado reducido al hacer scroll (se agrega .scrolled con JS) */
.site-header.scrolled {
    padding-block: 0.15rem;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    transition: padding 0.25s ease;
}

/* ajusta altura del header al hacer scroll */
.site-header.scrolled .header-inner {
    padding-block: 0.3rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Logo responsivo */
.logo img {
    max-width: 280px;     /* tamaño máximo en desktop */
    width: 60vw;          /* se ajusta al ancho de la pantalla */
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease, max-width 0.25s ease;
}

/* Logo más pequeño en scroll */
.site-header.scrolled .logo img {
    max-width: 180px;
    transform: scale(0.9);
}

.main-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.main-nav a {
    color: #6b7280;
    font-weight: 500;
}

.main-nav a:hover {
    color: #111827;
    text-decoration: none;
}

.btn-cta {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #f4b4b1, #f38ea7);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 8px 16px rgba(244, 180, 177, 0.35);
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(244, 180, 177, 0.4);
}

/* ====== Hero ====== */
.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
    margin: 0 0 0.75rem;
    color: #111827;
}

.hero-text p {
    margin: 0 0 1.5rem;
    color: #6b7280;
    max-width: 30rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary {
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, #f38ea7, #f4b4b1);
    color: #fff;
    box-shadow: 0 10px 24px rgba(243, 142, 167, 0.35);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(243, 142, 167, 0.4);
}

.btn-outline {
    padding: 0.8rem 1.6rem;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: #f9fafb;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

/* Imagen del hero cargada desde admin */
.hero-photo-wrap {
    max-width: 380px;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.25);
    margin: 0;
}

.hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
}

/* Card de reserva cuando no hay imagen */
.hero-card {
    background: linear-gradient(145deg, #fff7f0, #fde2e4);
    border-radius: 1.2rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 40px rgba(248, 181, 181, 0.25);
    max-width: 18rem;
}

.hero-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: #b91c1c;
}

.hero-card p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.link-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #047857;
    font-weight: 600;
}

/* ====== Secciones ====== */
.section {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    text-align: center;
    color: #111827;
}

.section-subtitle {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ====== Servicios ====== */
.section-services {
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fffdfb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}

/* Imagen dentro del card */
.service-image-wrap {
    width: 100%;
    border-radius: 0.8rem;
    overflow: hidden;
    margin-bottom: 0.8rem;
    background: #f9fafb;
}

.service-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.service-card h3 {
    margin: 0 0 0.1rem;
    font-size: 1.05rem;
    color: #111827;
}

.service-category {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1a1aa;
}

.service-description {
    margin: 0.3rem 0 0.6rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #111827;
}

.service-meta .price {
    font-weight: 700;
    color: #b91c1c;
}

.service-meta .duration {
    font-size: 0.85rem;
    color: #6b7280;
}

.btn-secondary {
    margin-top: 0.6rem;
    padding: 0.7rem 1rem;
    background: #111827;
    color: #fff;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #020617;
}

/* ====== Experiencia ====== */
.section-experience {
    background: #fdf2f8;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.section-experience h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #111827;
}

.section-experience p {
    margin: 0 0 0.75rem;
    color: #4b5563;
}

.experience-box {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 32px rgba(243, 142, 167, 0.2);
    border: 1px solid rgba(243, 142, 167, 0.35);
}

.experience-box ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #374151;
}

.experience-box li {
    margin-bottom: 0.4rem;
}

/* ====== CTA final ====== */
.section-cta {
    background: #111827;
    color: #f9fafb;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.btn-large {
    padding: 0.9rem 1.8rem;
    background: #f4b4b1;
    color: #111827;
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(244, 180, 177, 0.4);
}

.btn-large:hover {
    background: #f38ea7;
}

/* ====== Footer ====== */
.site-footer {
    background: #030712;
    color: #e5e7eb;
    padding-top: 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0 1.25rem 1.5rem;
}

.site-footer h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #f9fafb;
}

.site-footer p,
.site-footer a {
    font-size: 0.85rem;
    color: #9ca3af;
}

.site-footer a:hover {
    color: #e5e7eb;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    text-align: center;
    padding: 0.75rem 1.25rem 1.2rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-image {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    .btn-cta {
        display: none;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    /* en móviles el logo no debe exceder 220px */
    .logo img {
        max-width: 220px;
        width: 70vw;
    }

    .site-header.scrolled .logo img {
        max-width: 150px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 2.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding-inline: 0.75rem;
    }

    .container {
        padding-inline: 0.9rem;
    }

    .service-image {
        height: 170px;
    }
}

/* ====== Sección Why ====== */
.section-why {
    background: #fdfaf7;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.why-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.why-icon {
    font-size: 1.2rem;
    color: #f38ea7;
    line-height: 1;
}

hr.custom-line {
    border: none; /* Reset default border */
    border-top: 3px solid #BF5D4C; /* Set a solid top border as the line */
    background-color: #fff; /* Optional: for some effects */
    height: 1px; /* Set height */
    margin: 20px 0; /* Add vertical spacing */
  }

.why-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}

.why-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}
