:root{
    --color-principal: #f1a9b5;
    --color-principal-oscuro: #d98f9b;
    --color-principal-claro: #f7c3cc;
    --color-pastel: #f2fbff;
    --text: #2d2d2d;
    --card-white: #ffffff;
    --gold-1: #f7d78a;
    --gold-2: #ffd46a;
    --gold-3: #ffecb3;
    --glass: rgba(255,255,255,0.6);
    --rosa-opaco: rgba(241,169,181,0.85);
}

/* RESET & BASE */
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family:'Aptos', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    background: linear-gradient(135deg, #fffafc 0%, #f7fbff 40%, #f2fbff 100%);
    background-attachment: fixed;
}
a{color:inherit;text-decoration:none}

/* HEADER / NAV */
header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:12px 20px;
    background: var(--color-principal);
    position:sticky;
    top:0;
    z-index:50;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.nav-left{display:flex;align-items:center;gap:12px}
.logo-img{width:52px;height:auto;border-radius:8px}
.titulo{font-weight:800;font-size:20px;color:white}
nav a{margin-left:14px;font-weight:700;color:#fff}
nav a:hover{text-decoration:underline}

/* BANNER */
.banner-carousel{
    width:100%;
    height:48px;
    overflow:hidden;
    display:flex;
    align-items:center;
    border-bottom:1px solid rgba(0,0,0,0.03);
}
.banner-track{
    display:flex;
    width:100%;
    transition:transform .7s cubic-bezier(.2,.9,.2,1);
}
.banner-item{
    min-width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:16px;
    font-weight:800;
}

/* HERO */
.section{padding:30px 20px}
.hero-card{
    margin:28px auto;
    max-width:760px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
    padding:26px;
    border-radius:16px;
    box-shadow:0 8px 28px rgba(13,13,13,0.08);
    text-align:center;
    animation:respirar 3s ease-in-out infinite;
}
.hero-card h1{margin:0;font-size:28px}
.hero-card p{margin:8px 0 0;font-size:15px;color:#444}
.hero-card button{
    margin-top:14px;
    font-size:16px;
    padding:10px 18px;
    border-radius:10px;
    border:none;
    background:linear-gradient(90deg,var(--color-principal),var(--color-principal-oscuro));
    color:#fff;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(209,60,97,0.12);
}
@keyframes respirar{
    50%{transform:scale(1.03)}
}

/* SERVICIOS */
.servicios-grid{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
}

.servicio-card{
    width:112px;
    flex:0 0 auto;
    background:var(--card-white);
    border-radius:12px;
    padding:10px;
    text-align:center;
    position:relative;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.servicio-card img{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:8px;
    margin-bottom:8px;
    transition:transform .35s cubic-bezier(.22,1,.36,1);
}

.servicio-card:hover img{
    transform:scale(1.18);
}

.servicio-card h3{
    margin:0;
    font-size:13px;
    font-weight:800;
}

.servicio-card p{
    margin-top:6px;
    font-size:11px;
    color:#666;
}

/* =======================
   GALERÍA PROFESIONAL
======================= */

.carousel-container {
    max-width: 1000px; /* contenedor más amplio */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.8s cubic-bezier(.22,1,.36,1); /* misma animación que testimonios */
    width: 100%;
}

.gallery-item {
    flex: 0 0 auto;           /* ancho flexible según contenido y gap */
    width: 270px;              /* ancho base desktop aumentado x2 */
    aspect-ratio: 3 / 4;       /* portrait */
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    transition: transform 0.3s ease; /* hover */
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.gallery-item:hover {
    transform: scale(1.05);
}


/* =======================
   TESTIMONIOS PROFESIONAL
======================= */

.testimonios {
    max-width: 920px;
    margin: 40px auto;
    padding: 40px 26px 26px 26px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 235, 240, 0.95), rgba(255, 245, 250, 0.95));
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
    text-align: center;
}

.test-title {
    margin-bottom: 30px;
    color: var(--text);
    background: #fff;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
}

/* FONDO DE ESTRELLITAS */
.testimonios::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><polygon points="10,0 12,7 20,7 14,12 16,20 10,15 4,20 6,12 0,7 8,7" fill="%23ffb6c1"/></svg>');
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
    animation: starMove 30s linear infinite;
}

@keyframes starMove {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

.test-carousel {
    position: relative; /* contenedor relativo para que los botones se posicionen encima */
    overflow: hidden;
    width: 100%;
}

.test-track {
    display: flex;
    gap: 20px;
    transition: transform .8s cubic-bezier(.22,1,.36,1);
    width: 100%;
}

.test-card {
    flex: 0 0 48%;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* ESTRELLAS, TEXTO Y AUTOR */
.test-stars {
    color: #f5b400;
    font-size: 18px;
    margin-bottom: 10px;
}

.test-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.test-author {
    font-weight: 700;
    font-size: 13px;
}

/* FLECHAS */
.test-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* evita bloquear el scroll de tarjetas */
    z-index: 3; /* encima de las tarjetas */
}

.control-btn {
    pointer-events: all;
    background: var(--rosa-opaco);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.control-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 16px 36px rgba(0,0,0,.35);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .test-card { flex: 0 0 100%; }
    .test-controls { 
        top: auto; 
        bottom: 10px; 
        transform: none; 
        justify-content: center; 
        gap: 12px; 
    }
}

@media (max-width: 600px) {
    .test-card {
        flex: 0 0 100%; /* una por fila en móvil */
    }

    .test-controls {
        top: auto;
        bottom: 10px;
        transform: none;
        justify-content: center;
        gap: 12px;
    }
}

/* PAGOS */
.pagos{
    text-align:center;
    padding:26px 20px 56px;
}

.metodos-grid{
    display:flex;
    gap:18px;
    justify-content:center;
    flex-wrap:wrap;
}

.metodos-grid img{
    width:80px;
    border-radius:10px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* FOOTER */
footer{
    padding:18px;
    text-align:center;
    background:linear-gradient(90deg,var(--color-principal-oscuro),#ce7b86);
    color:#fff;
    font-weight:700;
}

/* REVEAL */
.reveal{
    opacity:0;
    transform:translateY(16px);
    transition:.7s cubic-bezier(.2,.9,.2,1);
}
.reveal.show{
    opacity:1;
    transform:none;
}

/* RESPONSIVE */
@media(max-width:480px){
    .gallery-item{min-width:200px;height:200px}
    .servicio-card{width:100px}
}

/* BOTONES FLOTANTES */
.float-contact{
    position:fixed;
    right:18px;
    bottom:18px;
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:999;
}

.float-contact a img {
    width: 48px;
    height: 48px;
}

@media (max-width: 600px) {
    .float-contact {
        right: 50%;
        transform: translateX(50%);
        bottom: 12px;
        flex-direction: row;
        background: rgba(255,255,255,0.9);
        padding: 8px 12px;
        border-radius: 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    .float-contact a img {
        width: 40px;
        height: 40px;
    }
}

/* AGENDA */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.horario {
    padding: 14px 10px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.horario:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.horario.libre {
    background: #dff5e1;
    color: #1f7a36;
}

.horario.pendiente {
    background: #fff3cd;
    color: #856404;
    cursor: not-allowed;
}

.horario.ocupado {
    background: #f8d7da;
    color: #842029;
    cursor: not-allowed;
}

.agenda-vacia{
    width:100%;
    min-height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:16px;
    color:#777;
    border-radius:14px;
    background:rgba(255,255,255,0.65);
    box-shadow:0 10px 26px rgba(0,0,0,.06);
    backdrop-filter: blur(6px);
}

.agenda-vacia span{
    padding:14px 20px;
}
