/* Estilos generales y reseteo */
html {
    height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: #8E03A3;
    color: white;
    font-family: 'EB Garamond', serif;
    display: block;
}

/* --- Estilos para el contenedor del video de introducción --- */
#video-intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #8E03A3;
    z-index: 100;
}

#intro-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Estilos de la tarjeta digital --- */
#digital-card-container {
    width: 100%;
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in;
}

#digital-card-container.hidden {
    display: none;
}

#digital-card-container.fade-in {
    opacity: 1;
    pointer-events: all;
}

.card-background {
    background-color: transparent;
    padding: 0;
    text-align: center;
    max-width: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-logo {
    max-width: clamp(150px, 45vw, 250px);
    height: auto;
    margin-bottom: clamp(25px, 6vw, 50px);
    display: block;
}

.welcome-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2em, 7vw, 3.5em);
    margin-bottom: clamp(25px, 6vw, 45px);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.buttons-grid {
    display: grid;
    gap: clamp(15px, 4vw, 25px);
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 400px;
}

.card-button {
    display: flex;
    justify-content: center;
    align-items: center;
    /* --- Corrección para botones más delgados y visibles --- */
    /* Eliminamos 'height' fijo y confiamos más en padding para definir la altura vertical */
    padding: clamp(10px, 3.5vw, 15px) clamp(20px, 7vw, 30px); /* Ajuste de padding vertical */
    /* La línea de abajo fue la que probablemente causó el problema al forzar una altura muy pequeña */
    /* height: clamp(35px, 10vw, 50px); */
    /* --------------------------------------------------- */
    background-color: #0000FF;
    border: none;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: clamp(1.5em, 5.5vw, 1.8em);
    font-family: 'EB Garamond', serif;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Efecto hover: Azul Dorado Metálico */
.card-button:hover {
    background: linear-gradient(135deg, #0000FF 0%, #DAA520 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(218, 165, 32, 0.6);
    transform: translateY(-3px);
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.3em;
}

/* --- Media Queries para responsividad (escritorio y tabletas) --- */
@media (min-width: 600px) {
    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    .welcome-text {
        font-size: 3em;
    }
    .card-button {
        font-size: 1.6em;
        /* height: 45px; <-- Eliminado */
        padding: 12px 25px; /* Ajuste para tablets */
    }
}

@media (min-width: 1024px) {
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
    .welcome-text {
        font-size: 3.5em;
    }
    .card-button {
        font-size: 1.8em;
        /* height: 50px; <-- Eliminado */
        padding: 15px 30px; /* Ajuste para escritorios */
    }
}