/* Variables de color de la marca y redes sociales */
:root {
    --bg-pink: #fce4ec; 
    --magenta: #e91e63; /* Color marca */
    
    /* Colores oficiales de redes */
    --whatsapp-green: #25D366;
    --facebook-blue: #1877F2;
    --instagram-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-pink);
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

#candy-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.candy {
    position: absolute;
    top: -50px;
    font-size: 24px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Imagen de perfil con EFECTO PULSANTE */
.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--magenta);
    margin-bottom: 15px;
    background-color: white;
    /* Aplicando la animación */
    animation: pulse 2s infinite; 
}

/* Animación de latido/pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 30, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

.title {
    font-family: 'Pacifico', cursive;
    color: var(--magenta);
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.8);
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
    margin-bottom: 30px;
    font-weight: 600;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-link {
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos de cada botón */
.btn-whatsapp { 
    background-color: var(--whatsapp-green); 
}

.btn-instagram { 
    background: var(--instagram-grad); 
}

.btn-facebook { 
    background-color: var(--facebook-blue); 
}

.btn-portfolio { 
    background-color: var(--magenta); 
}

/* =========================================
   ESTILOS DEL MODAL Y CARRUSEL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px); /* Desenfoque elegante */
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Clase para activar el modal */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-pink);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--magenta);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    height: 350px;
}

.media-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-wrapper img, .media-wrapper video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--magenta);
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transition: background 0.3s;
}

.nav-btn:hover { background: white; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.modal-cta-container {
    text-align: center;
}

.cta-text {
    color: var(--magenta);
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cta-btn {
    display: block;
    animation: pulse 2s infinite; /* Reutilizamos tu animación pulsante */
}