/* ============================================
   RESET Y BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   VARIABLES CSS - COLORES PARAMETRIZADOS
   ============================================ */
:root {
    /* Colores Principales */
    --color-primary: #3b4c6b;
    --color-primary-dark: #46597c;
    --color-primary-light: #8b6fd9;
    --color-secondary: #A855F7;
    --color-accent: #F59E0B;
    --color-accent-hover: #d97706;
    
    /* Colores de Texto */
    --color-text-dark: #1F2937;
    --color-text-medium: #4B5563;
    --color-text-light: #6B7280;
    --color-text-white: #FFFFFF;
    
    /* Colores de Fondo */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-dark: #111827;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 20, 55, 0.55) 0%, rgba(30, 64, 175, 0.55) 100%);
    /* Hero CTA Gradients (desktop look) */
    --gradient-hero-cta1: linear-gradient(135deg, #C084FC 0%, #A855F7 100%);
    --gradient-hero-cta2: linear-gradient(135deg, #E9D5FF 0%, #C084FC 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografía */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

:root {
    --color-card-footer: #4B3563;

    /* Colores por categoría para banda de título/subtítulo en cards */
    --card-color-samael: #af9cca;      /* morado claro */
    --card-color-salud: #4D6FFF;      /* azul */
    --card-color-dinero: #c8a84a;     /* dorado/arena */
    --card-color-amor: #e9a1c7;       /* rosa cálido */
    --card-color-holistica: #6B7F4D;  /* lila */
    --card-color-general: #5e3f6a;    /* morado profundo */
}
/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--color-bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   HEADER - MOBILE FIRST
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: var(--z-fixed);
    box-shadow: none;
    transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.header.scrolled {
    background: rgba(59, 76, 107, 0.95); /* azul */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    z-index: var(--z-fixed);
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Menu Mobile */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    padding: 5rem var(--spacing-lg) var(--spacing-lg);
    list-style: none;
    gap: var(--spacing-md);
    transition: right var(--transition-base) var(--transition-cubic);
    z-index: var(--z-modal);
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-base);
}

.nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
.nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

.nav-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Hover Invertido - Efecto de relleno desde abajo */
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-base) var(--transition-cubic);
    z-index: -1;
    border-radius: var(--radius-md);
}

.nav-menu a:hover::before {
    height: 100%;
}

.nav-menu a:hover {
    color: var(--color-text-white);
    transform: translateX(5px);
}

/* Active nav item pill (desktop look) */
.nav-menu a.active,
.nav-menu a[aria-current="page"] {
    color: var(--color-text-white);
    border-radius: 999px;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: var(--z-tooltip);
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Overlay cuando el menú está abierto */
.nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: -1;
}

.nav-menu.active::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BANNER SLIDER - MOBILE FIRST
   ============================================ */
.banner-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

/* Fondo Fijo */
.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/banner_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.banner-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    /* Ensure content is not covered by transparent header */
    padding-top: 80px;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    gap: var(--spacing-xl);
}

/* Slide Text */
.slide-text {
    flex: 1;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.slide.active .slide-text {
    opacity: 1;
}

.slide-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slide-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 400px;
}

/* Slide Image */
.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.slide.active .slide-image {
    opacity: 1;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.dot.active {
    background: var(--color-text-white);
    width: 32px;
    border-color: var(--color-text-white);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: var(--spacing-md);
}

.slider-arrow-next {
    right: var(--spacing-md);
}

/* ============================================
   BUTTONS - MOBILE FIRST
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-hero-cta1);
    color: var(--color-text-white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--gradient-hero-cta2);
    color: var(--color-text-white);
    border: 0;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    display: block;
    margin: 1rem auto;
    width: fit-content;
    text-align: center;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--font-size-3xl);
    color: var(--color-text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

/* ============================================
   TAROTISTAS SECTION
   ============================================ */
.tarotistas {
    padding: 0 0 var(--spacing-2xl);
    background: var(--color-bg-light);
}

/* Destacado (Tarotistas) - hero band */
.destacado-hero {
    background-image: url('image/destacado_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.destacado-title {
    /* Override gradient text from .section-title */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--color-text-white) !important;
    color: var(--color-text-white) !important;

    font-weight: 800;
    letter-spacing: 0.01em;
}

.destacado-subtitle {
    color: #FDE047; /* amarillo destacado */
    font-weight: 600;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop refinements for destacado */
@media (min-width: 1024px) {
    .destacado-hero {
        padding: 4rem 0;
    }
    .destacado-title {
        font-size: clamp(2rem, 3vw, 3.25rem);
        margin-bottom: var(--spacing-sm);
    }
    .destacado-subtitle {
        font-size: var(--font-size-3xl);
        letter-spacing: 0.01em;
    }
}

.tarotistas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.tarotista-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.tarotista-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.tarotista-image {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Photo-based card variant */
.tarotista-image.has-photo {
    height: 280px;
    background: transparent;
    padding: 0;
}
.tarotista-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tarotista-image.has-photo .specialty-badge {
    left: var(--spacing-sm);
    right: auto;
    background: var(--color-bg-white);
    color: var(--color-primary);
}

/* Card header colored band (only title + subtitle) */
.tarotista-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column; /* Esto fuerza que el texto quede debajo */
    padding: var(--spacing-md);
}
.tarotista-header h3 {
    color: var(--color-text-white);
    margin: 0 0 0.25rem;
    font-weight: 700;
    display: block;
    text-align: left;
    width: 100%;
}
.tarotista-header .tarotista-specialty {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
     display: block;
    text-align: left;
    width: 100%;
}

/* Category colors */
.tarotista-header--samael { background: var(--card-color-samael); }
.tarotista-header--salud { background: var(--card-color-salud); }
.tarotista-header--dinero { background: var(--card-color-dinero); }
.tarotista-header--amor { background: var(--card-color-amor); }
.tarotista-header--holistica { background: var(--card-color-holistica); }
.tarotista-header--general { background: var(--card-color-general); }

.tarotista-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.emoji-icon {
    font-size: 1.5rem;
    display: inline-block;
    line-height: 1;
}

.tarotista-avatar .emoji-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.specialty-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--color-bg-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.tarotista-info {
    padding: var(--spacing-lg);
}
.tarotista-info--colored {
    background: var(--color-card-footer);
    color: var(--color-text-white);
}
.tarotista-info--colored h3 {
    color: var(--color-text-white);
    font-weight: 700;
}
.tarotista-info--colored .tarotista-specialty,
.tarotista-info--colored .tarotista-description,
.tarotista-info--colored .tarotista-features span,
.tarotista-info--colored .tarotista-rating {
    color: rgba(255, 255, 255, 0.9);
}

.tarotista-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.tarotista-specialty {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.tarotista-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.tarotista-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tarotista-features span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-medium);
}

.tarotista-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.stars {
    display: flex;
    gap: 2px;
}

/* ============================================
   SERVICIOS SECTION
   ============================================ */
.servicios {
    padding: var(--spacing-2xl) 0;
    position: relative;
    background: transparent;
}
.servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('image/seccionAzul_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax básico */
    transform: translateZ(0); /* Evita saltos en algunos navegadores */
    z-index: 0;
}
.servicios::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}
.servicios .container {
    position: relative;
    z-index: 1;
}

/* Parallax fallback (iOS/mobile) */
.servicios.parallax-fallback-active { 
    overflow: hidden; 
}
.servicios.parallax-fallback-active::before { 
    display: none; 
}
.servicios .parallax-fallback {
    position: absolute;
    inset: 0;
    background-image: url('image/seccionAzul_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    transform: translateY(0);
}

/* Servicios title override */
.servicios .section-title {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--color-text-white) !important;
    color: var(--color-text-white) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.servicio-card {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    border: 2px solid var(--color-bg-light);
    background: var(--color-bg-white); /* Fondo blanco en cards */
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--color-text-white); /* SVG usa currentColor -> blanco */
}

.servicio-icon .emoji-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
/* SVG íconos planos en blanco */
.servicio-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    color: var(--color-text-white); /* currentColor -> blanco */
}

.servicio-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.servicio-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

/* ============================================
   CONTACTO SECTION
   ============================================ */
.contacto {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-light);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.contacto-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}


/* Contact icons: flat white vector */
.contacto-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white); /* SVG uses currentColor */
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.contacto-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    display: block;
}

.contacto-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-dark);
}

.contacto-item p {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.contacto-form {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-bg-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    font-family: inherit;
    color: var(--color-text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: var(--spacing-xl) 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}
.footer-logo {
    height: 56px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.footer-brand .emoji-icon {
    font-size: 2rem;
}

.footer-content p {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--color-text-white);
}
.footer-social a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    /* Header */
    .logo-img {
        height: 100px;
    }
    
    .nav {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        padding: 0;
        background: transparent;
        box-shadow: none;
        gap: var(--spacing-lg);
    }
    
    .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: var(--font-size-base);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-menu a:hover {
        transform: translateY(-2px);
    }
    
    .nav-menu::before {
        display: none;
    }
    
    /* Banner Slider */
    .banner-slider {
        margin-top: 0;
    }
    
    .slide-content {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-2xl);
    }
    
    .slide-text {
        max-width: 50%;
    }
    
    .slide-title {
        font-size: var(--font-size-4xl);
    }
    
    .slide-subtitle {
        font-size: var(--font-size-lg);
        margin-left: 0;
        margin-right: 0;
    }
    
    .slide-buttons {
        flex-direction: row;
        max-width: none;
    }
    
    .btn {
        width: auto;
        padding: var(--spacing-sm) var(--spacing-xl);
    }
    
    .hero-img {
        max-height: 500px;
    }
    
    .slider-arrow {
        display: flex;
    }
    
    /* Grids */
    .tarotistas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacto-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Ensure content not covered by header on tablet/desktop */
    .slider-container {
        padding-top: 100px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    /* Typography */
    .slide-title {
        font-size: clamp(2.75rem, 4.5vw, 4rem);
    }
    
    .section-title {
        font-size: var(--font-size-5xl);
    }
    
    /* Banner */
    .banner-slider {
        margin-top: 0;
    }
    
    .slide {
        padding: var(--spacing-2xl);
    }
    
    .hero-img {
        max-height: 680px;
    }
    
    /* Grids */
    .tarotistas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .servicios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    .slide-content {
        gap: var(--spacing-2xl);
    }
    
    .hero-img {
        max-height: 780px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .slider-dots,
    .slider-arrow,
    .hamburger {
        display: none;
    }
    
    .banner-slider {
        margin-top: 0;
    }
    
    body {
        background: white;
    }
}

/* ============================================
   ACCESSIBILITY FOCUS STATES
   ============================================ */
.nav-menu a:focus-visible,
.btn:focus-visible,
.dot:focus-visible,
.slider-arrow:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-lg);
}

/* ============================================
   SLIDER STATUS INDICATOR
   ============================================ */
.slider-status {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--spacing-lg) + 40px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: var(--font-size-sm);
    z-index: 11;
}

.slider-status .status-current {
    min-width: 1.2ch;
    text-align: center;
}

/* Improve dots focus ring visibility on dark backgrounds */
.slider-dots .dot:focus-visible {
    border-color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.7);
}

/* Ensure interactive elements sit above overlay */
.slider-dots,
.slider-arrow {
    z-index: 11;
}

/* ============================================
   HEADER OVER BANNER - TRANSPARENT TOP, SOLID ON SCROLL
   ============================================ */

/* Desktop: nav links white over transparent header (on top of banner) */
@media (min-width: 768px) {
    .header:not(.scrolled) .nav-menu a {
        color: var(--color-text-white);
    }
    .header:not(.scrolled) .nav-menu a:hover {
        color: var(--color-text-white);
    }

    /* When scrolled over blue background, keep links white in desktop */
    .header.scrolled .nav-menu a {
        color: var(--color-text-white);
    }
    .header.scrolled .nav-menu a:hover {
        color: var(--color-text-white);
    }
}

/* Hamburger bars white when header is transparent */
.header:not(.scrolled) .hamburger span {
    background: var(--color-text-white);
}
/* Hamburger bars white when scrolled on blue */
.header.scrolled .hamburger span {
    background: var(--color-text-white);
}

/* ============================================
   HERO (BANNER) REFINEMENTS
   ============================================ */

/* Title underline accent */
.slide-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 4px;
    margin: 12px auto 0; /* centered on mobile */
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

/* Subtle letter spacing for hero title */
.slide-title {
    letter-spacing: 0.02em;
}

/* Improve buttons grouping spacing */
.slide-buttons .btn + .btn {
    margin-left: 0;
}

@media (min-width: 768px) {
    /* Align underline to left on desktop */
    .slide-title::after {
        margin-left: 0;
        margin-right: 0;
    }

    /* More compact text width to balance with hero image */
    .slide-text {
        max-width: 45%;
    }

    /* Better spacing between CTAs when horizontal */
    .slide-buttons .btn + .btn {
        margin-left: var(--spacing-sm);
    }
}

/* Desktop layout refinements to match LookTarot */
@media (min-width: 1024px) {
    .slide-content {
        justify-content: space-between;
        align-items: center;
        padding-left: var(--spacing-2xl);
    }
    .slide-title {
        margin-bottom: var(--spacing-lg);
    }
    .slide-subtitle {
        max-width: 680px;
        letter-spacing: 0.01em;
    }
    .slide-buttons {
        justify-content: flex-start;
    }
    .slide-buttons .btn {
        border-radius: var(--radius-full);
        padding: 0.9rem 1.75rem;
    }
    .slide-buttons .btn + .btn {
        margin-left: var(--spacing-lg);
    }
}

/* ============================================
   PERFIL
   ============================================ */
.perfil-etq{ text-transform:uppercase; letter-spacing:.06em; font-size:.8rem; color:#6b7280; margin:0 0 .25rem; }
.perfil-sec{ font-size:1.05rem; margin:1rem 0 .4rem; color:#1f2937; }
.perfil-lista{ margin:.25rem 0 1rem; padding-left:1.1rem; }
.perfil-lista li{ margin:.25rem 0; }

/* ============================================
   BOTON QUIEN SOY
   ============================================ */

/* Layout solo del header de la tarjeta */
.tarotista-card .tarotista-header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem .75rem;
}

/* Empuja el botón a la derecha dentro del header */
.tarotista-card .tarotista-header .btn-who{ margin-left:auto; }

/* Estilo PLANO del botón, sin tocar tus .btn globales */
.tarotista-card .tarotista-header .btn.btn-who{
  background:#ffffff;                 /* plano */
  border:1px solid #d7dbe7;
  color:#1f2a44;
  font-weight:600;
  padding:.62rem 1rem;
  min-height:44px;
  border-radius:12px;
  box-shadow:none;
  transition:background .15s ease, border-color .15s ease, transform .02s;
}
.tarotista-card .tarotista-header .btn.btn-who:hover{
  background:#f6f8ff;
  border-color:#c9cfe2;
}
.tarotista-card .tarotista-header .btn.btn-who:active{ transform:translateY(1px); }
.tarotista-card .tarotista-header .btn.btn-who:focus-visible{
  outline:0; box-shadow:0 0 0 3px rgba(99,102,241,.45);
}

/* Móvil: stack sin afectar otros botones fuera del header */
@media (max-width:640px){
  .tarotista-card .tarotista-header{
    flex-direction:column;
    align-items:flex-start;
  }
  .tarotista-card .tarotista-header .btn.btn-who{
    width:100%;
    margin-left:0;
    margin-top:.5rem;
  }
}

/* Compactar espacio entre nombre y especialidad (todas las tarjetas) */
.tarotista-card .tarotista-header{
  row-gap: 2px;               /* reduce el espacio vertical interno */
}

.tarotista-card .tarotista-header h3{
  margin-top: 0;
  margin-bottom: 2px;         /* estaba más grande por defecto */
  line-height: 1.15;
}

.tarotista-card .tarotista-header .tarotista-specialty{
  margin-top: 0;
  margin-bottom: 0;           /* quita el margen del <p> */
  line-height: 1.25;
}

/* === MODAL / LIGHTBOX === */
/* --- MODAL / LIGHTBOX --- */
#perfil-modal .modal-box{
  width: 450px; /* Cambia el ancho */
  margin: 4vh auto; 
  padding: 1.25rem; /* Ajustar padding */
}

#perfil-modal .perfil-foto{
  display: none; /* Elimina la imagen */
}

/* Título */
#perfil-modal h2{
  font-size: 1.3rem;
}

/* Subtítulo y texto ajustados para un modal más pequeño */
#perfil-modal .perfil-sub,
#perfil-modal p{
  font-size: 1rem;
  line-height: 1.5;
}

#perfil-modal .perfil-lista{
  font-size: 0.95rem;
}


/* --- Móvil: aún más pequeño --- */
@media (max-width: 640px){
  #perfil-modal .modal-box{
    width: 90%;
    max-width: 500px;
    margin: 5vh auto;
  }
}
/* --- MODAL / LIGHTBOX --- */
#perfil-modal[hidden] {
  display: none; /* Asegúrate de que no se muestre cuando esté "hidden" */
}

/* Este contenedor debe ser FIXED para que se vea sobre el contenido */
#perfil-modal {
  position: fixed;
  inset: 0;
  z-index: 1040; /* Asegúrate de que el modal se superponga */
}

#perfil-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* Fondo oscuro con opacidad */
}

#perfil-modal .modal-box {
  position: relative;
  z-index: 1050; /* Asegúrate de que esté por encima de la cortina */
  width: 450px;
  margin: 4vh auto;
  padding: 1.25rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: 92vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Cerrar el modal */
#perfil-modal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 20px;
  cursor: pointer;
}

/* --- Móvil --- */
@media (max-width: 640px) {
  #perfil-modal .modal-box {
    width: 90%;
    max-width: 500px;
    margin: 5vh auto;
  }
}

/* Ajuste para que las etiquetas (Salud, Prosperidad, etc.) estén debajo del nombre */
.tarotista-card .tarotista-header .specialty-badge {
  display: block;                
  margin-top: 8px;                
}

/* Ajuste para el texto dentro del badge */
.tarotista-card .tarotista-header .specialty-badge span {
  font-size: 1rem;               
  display: block;                
  margin: 0;                     
  text-align: center;            
}
