/* ═══════════════════════════════════════════
   PRINCIPAL.CSS — Estilos de la landing page
   Depende de: tokens.css
   ═══════════════════════════════════════════ */

/* ────────────────────────────────────────────
   1. HEADER / NAV
   ──────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,247,250,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rose-100);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dk) 100%);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(232,69,122,.35);
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--brown); }
.logo-sub   { font-size: 0.68rem; color: var(--rose); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 420px) {
    .logo-name { font-size: 0.95rem; }
    .logo-sub  { display: none; }
}

/* ────────────────────────────────────────────
   2. HERO
   ──────────────────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-50) 0%, var(--cream) 55%, var(--amber-100) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 55% at 85% 45%, rgba(232,69,122,.09) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 5%  80%, rgba(217,122,42,.07)  0%, transparent 70%);
    pointer-events: none;
}
.hero-paw-bg {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    font-size: 22rem;
    opacity: .04;
    pointer-events: none;
    user-select: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1.5px solid var(--rose-200);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rose);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    font-weight: 900;
    color: var(--brown);
    line-height: 1.14;
    margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--rose); }
.hero-desc {
    font-size: 1.08rem;
    color: var(--slate);
    font-weight: 300;
    margin-bottom: 34px;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--rose-100);
    flex-wrap: wrap;
}
.stat-num   { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brown); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--rose); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }

/* Floating card */
.hero-card {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border-radius: 22px;
    padding: 26px;
    width: 250px;
    box-shadow: var(--shadow-lg);
    border: 1.5px solid var(--rose-100);
    animation: float 4s ease-in-out infinite;
    display: none;
}
@media (min-width: 900px) { .hero-card { display: block; } }
@keyframes float {
    0%, 100% { transform: translateY(-50%) translateY(0); }
    50%       { transform: translateY(-50%) translateY(-14px); }
}
.hero-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--brown);
    font-weight: 700;
    margin-bottom: 14px;
}
.hero-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rose-50);
    font-size: 0.85rem;
    color: var(--slate);
}
.hero-card-item:last-of-type { border-bottom: none; }
.hero-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }
.hero-card-badge {
    margin-top: 16px;
    background: var(--rose-50);
    color: var(--rose);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

/* ────────────────────────────────────────────
   3. SERVICES
   ──────────────────────────────────────────── */
#services { background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.service-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1.5px solid var(--rose-100);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    transition: opacity .3s;
}
.service-card:nth-child(1)::after { background: var(--amber); }
.service-card:nth-child(2)::after { background: var(--rose); }
.service-card:nth-child(3)::after { background: #f472b6; }
.service-card:nth-child(4)::after { background: var(--rose-dk); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; background: var(--white); }
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 68px; height: 68px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}
.service-card:nth-child(1) .service-icon { background: var(--amber-100); }
.service-card:nth-child(2) .service-icon { background: var(--rose-100); }
.service-card:nth-child(3) .service-icon { background: #fce7f3; }
.service-card:nth-child(4) .service-icon { background: var(--rose-50); }
.service-card h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--brown); margin-bottom: 10px; font-weight: 700; }
.service-card p  { font-size: 0.87rem; color: var(--slate); line-height: 1.65; font-weight: 300; }

/* ────────────────────────────────────────────
   4. CAROUSEL (shared styles)
   ──────────────────────────────────────────── */
.carousel-section-light { background: var(--rose-50); }
.carousel-section-white { background: var(--white); }

.carousel-wrapper {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.carousel-track {
    display: flex;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.carousel-item { flex: 0 0 100%; width: 100%; position: relative; }
.carousel-item img {
    width: 100%; height: 440px;
    object-fit: cover;
    display: block;
}
.carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(61,26,36,.78) 0%, rgba(61,26,36,.1) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 34px;
}
.carousel-overlay p    { color: var(--white); font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.carousel-overlay span { color: rgba(255,255,255,.65); font-size: 0.86rem; margin-top: 6px; display: block; }

.carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 18px; justify-content: center; }
.carousel-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--rose-200);
    background: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--brown);
    font-size: 1rem;
    transition: all .22s;
}
.carousel-btn:hover { background: var(--rose); border-color: var(--rose); color: var(--white); }
.carousel-dots { display: flex; gap: 6px; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rose-200);
    cursor: pointer;
    border: none;
    transition: all .3s;
}
.dot.active { background: var(--rose); width: 24px; border-radius: 4px; }

/* ────────────────────────────────────────────
   5. WHY US
   ──────────────────────────────────────────── */
.why-section { background: var(--brown); }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; gap: 36px; } }

.why-text .section-label { color: var(--rose-200); }
.why-text .section-title { color: var(--white); }
.why-text .section-desc  { color: rgba(255,255,255,.6); }

.why-items { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.why-item  { display: flex; gap: 16px; align-items: flex-start; }
.why-icon  {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(232,69,122,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.why-item h4 { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.why-item p  { font-size: 0.87rem; color: rgba(255,255,255,.5); font-weight: 300; line-height: 1.6; }

.process-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 34px;
    backdrop-filter: blur(8px);
}
.process-card-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); margin-bottom: 22px; font-weight: 700; }
.process-step {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.process-step:last-child { border-bottom: none; }
.step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    font-size: 0.78rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.step-info h5 { color: var(--white); font-size: 0.88rem; font-weight: 600; }
.step-info p  { color: rgba(255,255,255,.45); font-size: 0.79rem; margin-top: 2px; font-weight: 300; }

/* ────────────────────────────────────────────
   6. TESTIMONIALS
   ──────────────────────────────────────────── */
.testimonials { background: var(--rose-50); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1.5px solid var(--rose-100);
    transition: box-shadow .3s, transform .3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stars { color: #f59e0b; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
    font-size: 0.9rem; color: var(--slate); line-height: 1.75;
    font-style: italic; margin-bottom: 18px; font-weight: 300;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--rose-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.87rem; color: var(--brown); }
.author-pet  { font-size: 0.76rem; color: var(--rose); margin-top: 1px; }

/* ────────────────────────────────────────────
   7. CONTACT
   ──────────────────────────────────────────── */
#contact {
    background: linear-gradient(135deg, var(--rose-50) 0%, var(--amber-100) 100%);
}
.contact-box {
    background: var(--white);
    border-radius: 24px;
    padding: 56px 48px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    border: 1.5px solid var(--rose-100);
}
@media (max-width: 580px) { .contact-box { padding: 36px 22px; } }
.contact-box .section-desc { margin: 0 auto 34px; text-align: center; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-meta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.contact-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--slate); }
.meta-icon {
    width: 30px; height: 30px;
    background: var(--rose-50);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.88rem;
}

/* ────────────────────────────────────────────
   8. FOOTER
   ──────────────────────────────────────────── */
footer {
    background: var(--brown);
    padding: 34px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy     { font-size: 0.82rem; color: rgba(255,255,255,.4); }
.footer-copy a   { color: var(--rose-200); text-decoration: none; transition: color .2s; }
.footer-copy a:hover { color: var(--rose-400); }
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-sub  { color: var(--rose-200); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE MÓVIL — Correcciones para pantallas angostas
   ════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 768px) ───────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Secciones: reducir padding vertical */
    section { padding: 56px 0; }

    /* NAV: logo y botón no se desborden */
    nav {
        height: auto;
        padding: 14px 0;
        gap: 10px;
    }
    .logo-name { font-size: 1rem; }

    /* HERO */
    .hero { min-height: auto; padding: 60px 0 48px; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
    .hero-desc { font-size: 0.97rem; }
    .hero-stats { gap: 20px; margin-top: 36px; padding-top: 20px; }
    .stat-num { font-size: 1.6rem; }

    /* CARRUSEL */
    .carousel-item img { height: 280px; }
    .carousel-overlay { padding: 20px; }
    .carousel-overlay p { font-size: 1.2rem; }

    /* TESTIMONIOS */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* FOOTER */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-copy { text-align: center; }
}

/* ── Móvil grande (≤ 540px) ─────────────────────────────────────────── */
@media (max-width: 540px) {

    /* Secciones */
    section { padding: 44px 0; }

    /* NAV: el botón no se desborde */
    nav { flex-wrap: wrap; justify-content: space-between; height: auto; padding: 12px 0; gap: 8px; }
    .logo { flex-shrink: 1; min-width: 0; }
    .logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .logo-name { font-size: 0.9rem; }

    /* El botón de acceso no se desborde */
    nav .btn {
        font-size: 0.82rem;
        padding: 10px 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* HERO */
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.18; }
    .hero-desc { font-size: 0.93rem; margin-bottom: 26px; }
    .hero-badge { font-size: 0.7rem; padding: 5px 12px; }

    /* Botones hero apilados */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.92rem;
        padding: 13px 20px;
    }

    /* Stats en fila con menos gap */
    .hero-stats { gap: 14px; flex-wrap: wrap; margin-top: 28px; }
    .stat-num   { font-size: 1.4rem; }
    .stat-label { font-size: 0.68rem; }

    /* SERVICIOS: una columna */
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
    .service-card { padding: 24px 18px; }
    .service-icon { width: 56px; height: 56px; font-size: 1.5rem; }

    /* CARRUSEL */
    .carousel-item img { height: 220px; }
    .carousel-overlay p { font-size: 1.05rem; }
    .carousel-overlay span { font-size: 0.78rem; }
    .carousel-btn { width: 34px; height: 34px; font-size: 0.85rem; }

    /* WHY / PROCESO */
    .process-card { padding: 22px 18px; }

    /* CONTACTO */
    .contact-box { padding: 30px 18px; border-radius: 18px; }
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .contact-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        padding: 13px 16px;
    }
    .contact-meta { flex-direction: column; gap: 10px; align-items: center; }

    /* FOOTER */
    .footer-inner { gap: 12px; }
    .footer-copy { font-size: 0.76rem; }
}

/* ── Móvil pequeño (≤ 380px) ────────────────────────────────────────── */
@media (max-width: 380px) {

    /* Contenedor: padding mínimo */
    .container { padding: 0 16px; }

    section { padding: 36px 0; }

    /* NAV */
    nav { gap: 6px; }
    .logo-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 10px; }
    .logo-name { font-size: 0.82rem; }
    nav .btn { font-size: 0.76rem; padding: 9px 13px; gap: 5px; }
    nav .btn svg { display: none; } /* ocultar ícono SVG para ganar espacio */

    /* HERO */
    .hero h1 { font-size: 1.65rem; }
    .hero-desc { font-size: 0.87rem; }
    .hero-stats { gap: 10px; }
    .stat-num { font-size: 1.25rem; }

    /* CARRUSEL */
    .carousel-item img { height: 180px; }
    .carousel-controls { gap: 8px; }

    /* TESTIMONIOS */
    .testimonial-card { padding: 20px 16px; }

    /* CONTACTO */
    .contact-box { padding: 24px 14px; }
}


/* ────────────────────────────────────────────
   9. CÓMO LLEGAR
   ──────────────────────────────────────────── */
.how-to-get-section {
    background: var(--white);
}

/* Layout: mapa + info en dos columnas */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* ── Mapa iframe ─────────────────────────── */
.map-embed-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1.5px solid var(--rose-100);
    background: var(--cream);
    /* Ratio 16:9 adaptable */
    aspect-ratio: 16 / 9;
    min-height: 320px;
}

.map-embed-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Capa clickeable encima del iframe */
.map-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    text-decoration: none;
    /* Gradiente sutil en la parte baja para el hint */
    background: linear-gradient(to top, rgba(61,26,36,.45) 0%, transparent 45%);
    opacity: 0;
    transition: opacity .3s ease;
}

.map-embed-wrapper:hover .map-click-overlay,
.map-embed-wrapper:focus-within .map-click-overlay {
    opacity: 1;
}

/* En móvil siempre visible para que el usuario sepa que puede tocar */
@media (hover: none) {
    .map-click-overlay { opacity: 1; }
}

.map-click-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.92);
    color: var(--brown);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
    letter-spacing: .03em;
    pointer-events: none; /* El clic lo captura el <a> padre */
}
.map-click-icon { font-size: 1rem; }

/* ── Tarjeta de info lateral ─────────────── */
.map-info-card {
    background: var(--cream);
    border: 1.5px solid var(--rose-100);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.map-info-icon {
    width: 40px;
    height: 40px;
    background: var(--rose-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--rose-100);
}

.map-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 3px;
}

.map-info-value {
    font-size: 0.88rem;
    color: var(--slate);
    font-weight: 400;
    line-height: 1.55;
}

/* Botones dentro de la tarjeta */
.map-route-btn,
.map-wsp-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.map-wsp-btn {
    margin-top: -6px; /* acercar al botón superior */
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
    .map-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .map-info-card {
        /* En tablet/móvil la info queda abajo del mapa */
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        align-items: flex-start;
    }
    .map-info-item { flex: 1 1 200px; }
    .map-route-btn,
    .map-wsp-btn {
        flex: 1 1 100%;
        margin-top: 0;
    }
}

@media (max-width: 540px) {
    .map-embed-wrapper {
        aspect-ratio: 4 / 3;
        min-height: 240px;
        border-radius: 14px;
    }
    .map-info-card {
        flex-direction: column;
        padding: 20px 16px;
        border-radius: 14px;
    }
    .map-info-item { flex: unset; }
    .map-click-hint { font-size: 0.76rem; padding: 7px 14px; }
}