* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #8e44ad;
    --accent-color: #f1c40f;
    --text-color: #333;
    --light-color: #ecf0f1;
    --card-back: #3498db;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a3a, #3a1a2a);
    color: var(--light-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--accent-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

.section {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #666;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 1rem;
}

.btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #9b59b6;
    transform: translateY(-2px);
}

.card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.card {
    height: 150px;
    background-color: var(--card-back);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    background-image: url('card-back.png');
    background-size: cover;
    background-position: center;
    color: transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card.selected {
    border: 3px solid var(--accent-color);
    transform: translateY(-8px);
}

.selected-cards .cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.selected-card {
    width: 120px;
    height: 180px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
}

.selected-card .card-front,
.selected-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.selected-card .card-back {
    background-color: var(--card-back);
    background-image: url('card-back.png');
    background-size: cover;
}

.selected-card .card-front {
    background-color: #fff;
    color: var(--text-color);
    transform: rotateY(180deg);
    padding: 10px;
    text-align: center;
}

.selected-card .card-front h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.selected-card .card-front img {
    max-width: 80%;
    max-height: 100px;
    margin-bottom: 10px;
}

.selected-card.flipped {
    transform: rotateY(180deg);
}

.reading-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.card-interpretation {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.card-interpretation h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

#summary {
    background-color: rgba(142, 68, 173, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding-top: 20px;
    opacity: 0.7;
    font-style: italic;
}

@media (max-width: 768px) {
    .card-deck {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .selected-cards .cards-container {
        flex-direction: column;
        align-items: center;
    }
}


.brand-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-logo {
    max-width: 120px;
    margin-bottom: 10px;
}

.brand-subtitle {
    color: #f1c40f;
    font-style: italic;
    opacity: 0.9;
}

.hero-image {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(241,196,15,0.3);
}

.privacy-note {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.checkbox-group label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/**/
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center; /* 👈 centra vertical */
    gap: 8px;            /* 👈 acerca el checkbox al texto */
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.85;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}


/* brand */
.brand-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-header h1 {
    color: #f1c40f;
    font-size: 2.2rem;
}

.brand-subtitle {
    color: #f1c40f;
    opacity: 0.8;
    font-style: italic;
}

.privacy-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

.checkbox-group label {
    font-size: 0.85rem;
}

.cta-box {
    background: rgba(241,196,15,0.15);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 25px;
}

.cta-btn {
    background-color: #f1c40f;
    color: #000;
    font-weight: bold;
}

.selected-cards .cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap; /* 👈 clave */
    margin: 30px 0;
}

.selected-card {
    width: 120px;
    height: 180px;
    flex-shrink: 0; /* 👈 evita que se aplasten */
}

@media (max-width: 600px) {
    .selected-cards .cards-container {
        flex-wrap: wrap;
    }
}

/*hero*/
/* HERO SUPERIOR */
.hero-header {
    position: relative;
    width: 100%;
    min-height: 280px;
    background-image: url("Fondo.jpg"); /* 👈 imagen estilo la página */
    background-size: contain;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
}

/* Overlay oscuro para legibilidad */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.85)
    );
}

/* Contenido centrado */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

/* Logo */
.hero-logo {
    max-width: 120px;
    margin-bottom: 10px;
}

/* Títulos */
.hero-title {
    color: #f1c40f;
    font-size: 2.4rem;
    margin: 5px 0;
}

.hero-subtitle {
    color: #f1c40f;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-claim {
    color: #ffffff;
    opacity: 0.85;
    font-size: 1rem;
    max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-header {
        min-height: 220px;
    }

    .hero-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .hero-header {
        min-height: 220px;
        background-size: cover;
    }
}
