/* ============================================
   VARON-E BARBERSHOP - ESTILOS PREMIUM
   Paleta del Logo Real: Rojo Barbero + Azul Barber Pole
   ============================================ */

/* ============================================
   RESET Y BASE
   ============================================ */

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

:root {
    /* Fondos */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;

    /* Rojo Barbero (Color Principal del Logo) */
    --primary-50: #fff0f0;
    --primary-100: #ffd6d6;
    --primary-200: #ffaaaa;
    --primary-300: #ff7070;
    --primary-400: #e84040;
    --primary-500: #CC2222;
    --primary-600: #aa1a1a;
    --primary-700: #881212;
    --primary-800: #660d0d;
    --primary-900: #440808;

    /* Azul Barber Pole (Acento del Logo) */
    --blue-400: #3a9fd8;
    --blue-500: #0061A2;
    --blue-600: #004d82;

    /* Dorado / Crema (Acento cálido) */
    --gold-400: #e8d5a0;
    --gold-500: #c9a84c;
    --gold-600: #a07830;

    /* Rojo (alias para compatibilidad) */
    --red-400: #e84040;
    --red-500: #CC2222;
    --red-600: #aa1a1a;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E8E8E8;
    --text-tertiary: #A0A0A0;
    --text-quaternary: #666666;

    /* Otros */
    --success: #22C55E;
    --warning: #F59E0B;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);

    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(135deg, #e84040 0%, #CC2222 40%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   UTILIDADES
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(204, 34, 34, 0.1);
    border: 1px solid rgba(204, 34, 34, 0.3);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.label-icon {
    font-size: 1.25rem;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #aa1a1a 0%, #CC2222 40%, #e84040 70%, #CC2222 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(204, 34, 34, 0.5),
        0 4px 24px rgba(204, 34, 34, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    font-size: 1rem;
    animation: gradient-shift 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.15);
    box-shadow:
        0 0 0 2px rgba(204, 34, 34, 0.8),
        0 8px 40px rgba(204, 34, 34, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid rgba(204, 34, 34, 0.35);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(204, 34, 34, 0.1);
    border-color: rgba(204, 34, 34, 0.6);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.glow-button {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   GLASS CARD
   ============================================ */

.glass-card {
    background: linear-gradient(135deg,
            rgba(204, 34, 34, 0.07) 0%,
            rgba(10, 10, 10, 0.6) 50%,
            rgba(0, 97, 162, 0.05) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(204, 34, 34, 0.15);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.5),
        0 2px 4px -2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
    transition: all var(--transition-slow);
}

.glass-card:hover {
    border-color: rgba(204, 34, 34, 0.4);
    box-shadow: 0 25px 50px -12px rgba(204, 34, 34, 0.25);
    transform: translateY(-4px);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(204, 34, 34, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(204, 34, 34, 0.15);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(204, 34, 34, 0.7)) drop-shadow(0 0 24px rgba(204, 34, 34, 0.3));
    transition: filter var(--transition-base), transform var(--transition-base);
}

.logo-img:hover {
    filter: drop-shadow(0 0 18px rgba(204, 34, 34, 0.9)) drop-shadow(0 0 36px rgba(204, 34, 34, 0.5));
    transform: scale(1.05);
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #e8d5a0 50%, #CC2222 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--blue-500));
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
    text-shadow:
        0 0 40px rgba(59, 130, 246, 0.3),
        0 0 80px rgba(59, 130, 246, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.sphere {
    width: 100%;
    height: 100%;
    position: relative;
    /* Float animation only uses translateY — no rotate() to avoid interfering with child spin */
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.sphere-inner {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(204, 34, 34, 0.15) 0%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 97, 162, 0.1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(204, 34, 34, 0.4);
    box-shadow:
        0 0 60px rgba(204, 34, 34, 0.35),
        0 0 120px rgba(204, 34, 34, 0.2),
        0 0 200px rgba(0, 97, 162, 0.15),
        inset 0 0 60px rgba(204, 34, 34, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 88%;
    height: 88%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(204, 34, 34, 0.5));
    /* GPU-composited spin: translateZ(0) promotes to its own layer for smooth 60fps */
    animation: logo-spin-slow 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes logo-spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sphere-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(204, 34, 34, 0.25) 0%, rgba(0, 97, 162, 0.1) 50%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.social-proof {
    padding: 48px 0;
    border-top: 1px solid rgba(204, 34, 34, 0.12);
    border-bottom: 1px solid rgba(204, 34, 34, 0.12);
    background: rgba(204, 34, 34, 0.02);
}

.social-proof-text {
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brands-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.brand-item {
    color: var(--text-tertiary);
    font-weight: 600;
    transition: color var(--transition-base);
}

.brand-item:hover {
    color: var(--primary-400);
}

/* ============================================
   SERVICIOS (FLIP CARDS)
   ============================================ */

.services {
    padding: 120px 0;
    background: radial-gradient(ellipse at top, rgba(204, 34, 34, 0.06) 0%, rgba(0, 97, 162, 0.03) 40%, transparent 70%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* ── Service Cards: Slide-Up Overlay (mobile-first, no 3D transforms) ── */

.service-card-flip {
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* wrapper is now just a sizing container — no 3D needed */
.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Front: full-bleed photo */
.service-card-front {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.service-card-flip:hover .service-image,
.service-card-flip.tapped .service-image {
    transform: scale(1.06);
}

/* Persistent bottom label (always visible) */
.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Label slides UP and fades out when detail panel comes in */
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-card-flip:hover .service-overlay,
.service-card-flip.tapped .service-overlay {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.service-icon {
    margin-bottom: 10px;
    filter: drop-shadow(0 0 14px rgba(204, 34, 34, 0.7));
    color: #FFFFFF;
}

.service-title-front {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Back: detail panel that slides up from the bottom */
.service-card-back {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* panel height: tailored to content */
    padding: 28px 24px;
    background: linear-gradient(135deg,
            rgba(15, 5, 5, 0.97) 0%,
            rgba(20, 5, 5, 0.95) 50%,
            rgba(0, 20, 40, 0.97) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(204, 34, 34, 0.35);
    border-radius: 0 0 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Hidden state: pushed below the card */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.30s ease;
    will-change: transform, opacity;
    /* Also remove the old glass-card padding override */
    box-shadow: none;
}

.service-card-flip:hover .service-card-back,
.service-card-flip.tapped .service-card-back {
    transform: translateY(0);
    opacity: 1;
}

.service-icon-back {
    margin-bottom: 12px;
    filter: drop-shadow(0 0 14px rgba(204, 34, 34, 0.7));
    color: #FFFFFF;
}

.service-title-back {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-tertiary);
    margin-bottom: 14px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.service-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.feature-tag {
    padding: 5px 12px;
    background: rgba(204, 34, 34, 0.18);
    border: 1px solid rgba(204, 34, 34, 0.4);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e84040;
}

.service-duration {
    color: var(--text-quaternary);
    font-size: 0.85rem;
}

/* ============================================
   GALERÍA
   ============================================ */

.gallery {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(239, 68, 68, 0.1));
    transition: all var(--transition-base);
}

.gallery-item:hover .gallery-image-placeholder {
    transform: scale(1.05);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.gallery-image-placeholder p {
    color: var(--text-tertiary);
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================
   BOOKING SECTION
   ============================================ */

.booking-section {
    padding: 120px 0;
    background: radial-gradient(ellipse at bottom, rgba(204, 34, 34, 0.06) 0%, rgba(0, 97, 162, 0.03) 40%, transparent 70%);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    position: relative;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fade-in-up 0.4s ease;
}

.form-step-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    /* Forced white for Android compatibility */
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.service-option {
    cursor: pointer;
}

.service-option input[type="radio"] {
    display: none;
}

.service-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.service-option input[type="radio"]:checked+.service-option-card {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.service-option-card:hover {
    border-color: var(--primary-400);
    transform: translateY(-2px);
}

.service-option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.service-option-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-option-duration {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(59, 130, 246, 0.02);
    border-radius: 12px;
}

.empty-state {
    grid-column: 1 / -1;
    width: 100%;
}

.time-slot {
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
    color: #FFFFFF;
    /* Forced white for better contrast */
}

.time-slot:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-400);
}

.time-slot.selected {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.loading-text {
    text-align: center;
    color: var(--text-tertiary);
    padding: 32px;
}

.form-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.form-buttons button {
    flex: 1;
}

.booking-summary {
    margin-bottom: 24px;
}

.booking-summary h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.summary-label {
    color: var(--text-tertiary);
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: rgba(59, 130, 246, 0.2);
    margin: 16px 0;
}

.summary-total {
    font-size: 1.25rem;
    border-bottom: none;
}

.summary-total .summary-value {
    color: var(--primary-400);
}

.payment-info {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.payment-info p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.payment-info p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TESTIMONIOS
   ============================================ */

.testimonials {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #CC2222, #0061A2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ============================================
   CONTACTO
   ============================================ */

.contact {
    padding: 120px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-description {
    color: var(--text-tertiary);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    gap: 16px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-400);
    color: var(--primary-400);
    transform: translateY(-2px);
}

.contact-map {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    /* Reduced padding for the map */
}

.contact-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.map-placeholder {
    text-align: center;
    color: var(--text-tertiary);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

.cta-note {
    margin-top: 16px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 80px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400), var(--red-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-links li:not(:has(a)) {
    color: var(--text-tertiary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        /* No rotate() here — keeps child spin independent and smooth */
        transform: translateY(0);
    }

    25% {
        transform: translateY(-20px);
    }

    50% {
        transform: translateY(-10px);
    }

    75% {
        transform: translateY(-30px);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.5),
            0 4px 24px rgba(59, 130, 246, 0.4),
            0 0 60px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(59, 130, 246, 0.8),
            0 8px 40px rgba(59, 130, 246, 0.6),
            0 0 80px rgba(59, 130, 246, 0.5);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.icon-svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform var(--transition-base);
}

.service-card-flip:hover .icon-svg {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
    }

    .sphere-container {
        max-width: 400px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sphere-container {
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .service-selector {
        grid-template-columns: 1fr;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas button {
        width: 100%;
    }
}