/* ============================================================
   ALMA ETÉREA · Sanación Espiritual y Energética
   Estilos principales - Diseño místico, elegante y oscuro
   ============================================================ */

/* ===================== VARIABLES CSS ===================== */
:root {
    /* Colores principales */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #16161f;
    --bg-card: rgba(22, 22, 31, 0.7);
    --bg-glass: rgba(22, 22, 31, 0.5);

    /* Texto */
    --text-primary: #e8e6f0;
    --text-secondary: #9d9bb0;
    --text-muted: #6b6980;

    /* Acentos */
    --accent-violet: #8b5cf6;
    --accent-violet-light: #a78bfa;
    --accent-violet-glow: rgba(139, 92, 246, 0.3);
    --accent-blue: #818cf8;
    --accent-purple: #c084fc;
    --accent-gold: #d4a853;
    --accent-gold-glow: rgba(212, 168, 83, 0.2);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #818cf8 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(22, 22, 31, 0.95) 100%);

    /* Tipografías */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Bordes y sombras */
    --border-subtle: 1px solid rgba(139, 92, 246, 0.1);
    --border-glow: 1px solid rgba(139, 92, 246, 0.25);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(139, 92, 246, 0.25);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Espaciado */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --nav-height: 80px;
}

/* ===================== RESET Y BASE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Restablecer cursor en móviles */
@media (max-width: 768px) {
    body { cursor: auto; }
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== CURSOR PERSONALIZADO ===================== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-violet);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-violet);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.custom-cursor.hovering {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-violet-light);
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--accent-purple);
}

@media (max-width: 768px) {
    .custom-cursor,
    .custom-cursor-trail {
        display: none !important;
    }
}

/* ===================== CANVAS DE PARTÍCULAS ===================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* ===================== BOTÓN DE SONIDO ===================== */
.sound-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: var(--border-subtle);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.sound-toggle:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
    box-shadow: var(--shadow-glow);
}

.sound-toggle svg {
    width: 22px;
    height: 22px;
}

.sound-toggle.active {
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
}

@media (max-width: 768px) {
    .sound-toggle {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar {
    transition: all var(--transition-base), transform 0.35s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Barra de progreso de scroll */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 10;
}

.nav-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-symbol {
    font-size: 1.4rem;
    color: var(--accent-violet-light);
    text-shadow: 0 0 20px var(--accent-violet-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menú hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Links de navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-base);
    color: var(--text-secondary);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-violet);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-1px);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
}

/* ===================== HERO SECTION ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

/* Fondo animado del hero */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform, opacity;
    transition: opacity 0.3s ease;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.12) 0%, transparent 70%);
    top: 40%;
    left: 30%;
}

.hero-smoke {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(192, 132, 252, 0.04) 0%, transparent 60%);
    will-change: transform;
    transition: transform 0.1s ease;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    will-change: transform, opacity;
    transition: opacity 0.1s ease;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: var(--border-subtle);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: var(--accent-violet-light);
    margin-bottom: 30px;
    background: rgba(139, 92, 246, 0.05);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 6px;
    color: var(--text-primary);
}

.hero-title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.3));
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--accent-violet-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Botones del hero */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* ===================== BOTONES ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.4);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover .btn-glow {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: var(--border-glow);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-violet);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .btn { cursor: pointer; }
}

/* Indicador de scroll */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: bounce-arrow 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-violet);
    opacity: 0.6;
}

/* Divisor de sección */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
}

.section-divider svg {
    width: 100%;
    height: 100%;
}

/* ===================== ENCABEZADOS DE SECCIÓN ===================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: var(--accent-violet-light);
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.text-glow {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-profile {
    width: min(280px, 65vw);
    margin: 20px auto 24px;
    border-radius: 22px;
    overflow: hidden;
    border: var(--border-glow);
    background: rgba(139, 92, 246, 0.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 30px rgba(139, 92, 246, 0.14);
    position: relative;
}

.about-profile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.about-profile-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
}

/* ===================== SOBRE MÍ ===================== */
.about {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-primary);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-violet-glow), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.about-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 36px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.specialty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.specialty-pill {
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    color: var(--accent-violet-light);
    border: var(--border-subtle);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.08);
}

.about-quote {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 2px solid rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.06);
    color: var(--text-primary);
    font-family: var(--font-accent);
    font-style: italic;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-profile {
        width: min(240px, 72vw);
        margin: 16px auto 20px;
        border-radius: 18px;
    }

    .about-profile-image {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    .about-profile {
        width: min(210px, 78vw);
    }
}

/* ===================== SERVICIOS ===================== */
.services {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-secondary);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-violet-glow), transparent);
}

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

/* Tarjetas de servicio */
.service-card {
    position: relative;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all var(--transition-slow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 20px;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-glow-strong);
}

.service-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    z-index: 1;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-base);
}

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

.card-title {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--text-primary);
    z-index: 1;
}

.card-description {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    z-index: 1;
    overflow-wrap: anywhere;
}

.card-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    z-index: 1;
}

.card-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 12px;
    border: var(--border-subtle);
    border-radius: 20px;
}

.card-link {
    font-size: 0.9rem;
    color: var(--accent-violet-light);
    font-weight: 500;
    transition: all var(--transition-base);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.card-link:hover {
    color: var(--accent-purple);
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== TESTIMONIOS ===================== */
.testimonials {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-violet-glow), transparent);
}

/* Carrusel */
.testimonials-carousel {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 8px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    align-items: stretch;
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 36px 30px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.testimonial-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-shadow: 0 0 10px var(--accent-gold-glow);
    overflow-wrap: anywhere;
}

.testimonial-text {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    min-width: 0;
    justify-content: center;
    width: 100%;
}

.author-info {
    min-width: 0;
    max-width: calc(100% - 62px);
    text-align: left;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    white-space: normal;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--accent-violet-light);
    opacity: 0.8;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Controles carrusel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: var(--border-subtle);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
    box-shadow: var(--shadow-glow);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: none;
    transition: all var(--transition-base);
    opacity: 0.4;
}

.carousel-dot.active {
    background: var(--accent-violet);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
        padding: 24px 20px;
        box-sizing: border-box;
    }
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    .carousel-btn { cursor: pointer; }
    .carousel-dot { cursor: pointer; }
}

/* ===================== CONTACTO ===================== */
.contact {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-secondary);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-violet-glow), transparent);
}

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

/* Formulario */
.contact-form-wrapper {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-base);
    z-index: 2;
}

.textarea-wrapper .input-icon {
    top: 16px;
    align-self: flex-start;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(10, 10, 15, 0.5);
    border: var(--border-subtle);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
    outline: none;
    resize: vertical;
}

.input-wrapper textarea {
    min-height: 120px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-violet-light);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.input-wrapper input:focus ~ .input-glow,
.input-wrapper textarea:focus ~ .input-glow {
    width: 100%;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Error shake en inputs */
.input-wrapper.error {
    animation: shake-error 0.4s ease;
}

.input-wrapper.error input,
.input-wrapper.error textarea {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Botón de envío */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    position: relative;
}

.btn-submit .btn-loading,
.btn-submit .btn-success {
    display: none;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: flex; align-items: center; gap: 10px; }

.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-loading { display: none; }
.btn-submit.success .btn-success { display: inline; }
.btn-submit.success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Info de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
}

.info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet-light);
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.info-content h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-content small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mapa visual decorativo */
.map-visual {
    margin-top: 8px;
}

.map-placeholder {
    position: relative;
    height: 200px;
    border-radius: 16px;
    border: var(--border-subtle);
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: map-pan 30s linear infinite;
}

.map-pin {
    position: relative;
    z-index: 2;
    color: var(--accent-violet);
    animation: map-pin-bounce 2s ease-in-out infinite;
}

.map-pin svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.map-label {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 2;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: var(--border-subtle);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: var(--border-subtle);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-brand p {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 30px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-violet-light);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-quote {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--accent-violet-light) !important;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand p {
        padding-left: 0;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

/* Animación de entrada scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Orbes flotantes */
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Humo */
@keyframes smoke-drift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-20px, -10px); }
}

/* Flecha de scroll */
@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* Brillo pulsante del logo */
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { text-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 80px rgba(139, 92, 246, 0.2); }
}

/* Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pin del mapa */
@keyframes map-pin-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Paneo del mapa */
@keyframes map-pan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, -30px); }
}

/* ===================== RESPONSIVE GLOBAL ===================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --nav-height: 70px;
    }

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

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 18px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title-line {
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 30px 22px;
    }

    .testimonial-card {
        padding: 28px 22px;
    }
}

/* ===================== SCROLLBAR PERSONALIZADA ===================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}
