
/* --- CONSTANTES DE DISEÑO --- */
:root {
    --bg-gradient: linear-gradient(180deg, #FFE9F5 0%, #FFE9F5 100%);
    --accent-rose: #E95F82;
    --accent-dark: #4a2831;
    --accent-soft: #FFB2C5;
    --card-bg: #ffffff;
    --text-main: #2b171d;
    --text-muted: #6e4e56;
    --shadow-sm: 0 4px 12px rgba(224, 159, 171, 0.12);
    --shadow-md: 0 8px 24px rgba(224, 159, 171, 0.22);
    --radius: 16px;
}

/* --- RESET RESPONSIVE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #fff5f6; 
    background-image: url('img/bg-section-mimadas-2.png');
    background-repeat: repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: auto; 
    
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* --- CINTILLO INFORMATIVO ULTRA-WIDE REPARADO --- */
    .promo-banner {
        width: 100%;
        background-color: var(--accent-rose);
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 0;
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
    }

    .promo-slider {
        display: flex;
        white-space: nowrap;
        /* Duplicamos los bloques y ajustamos el tiempo para mantener una velocidad natural */
        animation: marquee 35s linear infinite;
    }

    .promo-text {
        /* flex-shrink: 0 evita que el texto se comprima en pantallas grandes */
        flex-shrink: 0;
        padding-right: 60px; /* Espacio uniforme entre repeticiones */
    }

    @keyframes marquee {
        0% { transform: translate3d(0, 0, 0); }
        /* Al tener 4 bloques, mover -50% hace que el ciclo sea matemáticamente infinito y sin saltos */
        100% { transform: translate3d(-50%, 0, 0); }
    }

/* --- CONTENEDOR PRINCIPAL ADAPTABLE --- */
.container {
    width: 100%;
    max-width: 460px; 
    padding: 24px 16px 40px 16px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

/* --- SECCIÓN PERFIL --- */
.profile {
    margin-bottom: 24px;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #ffffff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.profile h1 {
    font-size: 1.35rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.profile p {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0 10px;
}

/* --- SECCIÓN CARRUSEL CON CONTROLES --- */
.featured-section {
    margin-bottom: 24px;
    text-align: left;
    position: relative; /* Clave para posicionar las flechas */
}

.featured-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    padding-left: 4px;
    text-align: center;
}

/* Contenedor relativo para agrupar carrusel + botones */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Desplazamiento animado nativo */
    -webkit-overflow-scrolling: touch; 
    padding: 4px 2px 8px 2px;
}

.carousel::-webkit-scrollbar { display: none; }
.carousel { -ms-overflow-style: none; scrollbar-width: none; }

.carousel-item {
    flex: 0 0 78%; 
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(224, 159, 171, 0.15);
}

.carousel-img {
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.carousel-info {
    padding: 12px;
}

.carousel-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.carousel-info p {
    font-size: 0.78rem;
    color: var(--accent-rose);
    font-weight: 700;
}

/* --- BOTONES DE NAVEGACIÓN (FLECHAS) --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(224, 159, 171, 0.2);
    color: var(--accent-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: none; /* Se ocultan por defecto en móvil */
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #ffffff;
    color: var(--accent-rose);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-sm);
}

.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

.carousel-btn span {
    font-size: 18px;
    font-weight: bold;
}

/* --- BOTONES DE ENLACE --- */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.link-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(224, 159, 171, 0.1);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:active {
    transform: scale(0.98);
    background-color: #fffbfb;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.link-icon {
    color: var(--accent-rose);
    font-size: 22px;
    flex-shrink: 0;
}

.link-text {
    font-weight: 600;
    font-size: 0.92rem;
    text-align: left;
    line-height: 1.3;
}

.arrow-icon {
    color: #c7b1b5;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* --- REDES SOCIALES --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 10px;
}

.social-icon {
    color: var(--accent-dark);
    transition: color 0.2s ease;
}

/* --- RESPONSIVE / MEDIA QUERIES PARA ESCRITORIO --- */
@media (min-width: 768px) {
    /* Mostramos las flechas de control solo en desktop */
    .carousel-btn {
        display: flex;
    }
    .carousel-item {
        flex: 0 0 72%; /* Ajustamos el ancho en PC para que el encuadre sea limpio */
    }
    .link-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent-soft);
    }
    .link-card:hover .arrow-icon {
        transform: translateX(4px);
        color: var(--accent-rose);
    }
    .social-icon:hover {
        color: var(--accent-rose);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CONTENEDOR DE MEDIOS DE PAGO (IMÁGENES PROPIAS) --- */
        .payments-section {
            margin-top: 35px;
            padding-top: 20px;
            border-top: 1px solid rgba(224, 159, 171, 0.2);
            width: 100%;
        }

        .payments-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--accent-dark);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 14px;
            opacity: 0.8;
        }

        .payments-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px; /* Espaciado compacto entre los rectángulos */
        }

        /* Rectángulo pequeño y uniforme para cada logo */
        .payment-card {
            background: #ffffff;
            border-radius: 4px; /* Bordes ligeramente suavizados */
            width: 46px;        /* Ancho rectangular pequeño estandarizado */
            height: 28px;       /* Alto uniforme */
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.08);
            padding: 3px;       /* Margen interno para que el logo respire */
            overflow: hidden;
        }

        /* Control absoluto de la imagen subida */
        .payment-card img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Ajusta el logo proporcionalmente sin deformarlo */
        }