﻿/* ============================================================
   INMORUEDA - Dark Luxury Gold Theme
   Agencia Inmobiliaria Roquetas de Mar, Almería
   ============================================================ */

/* ==================== VARIABLES ==================== */
:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #111113;
    --bg-card: #18181B;

    /* Color principal: Dorado */
    --primary-50: #fdf8ec;
    --primary-100: #faefd0;
    --primary-200: #f4dda1;
    --primary-300: #ecc865;
    --primary-400: #E4B84A;
    --primary-500: #C9A84C;
    --primary-600: #B8922E;
    --primary-700: #9A7520;
    --primary-800: #7D5C1A;
    --primary-900: #5C4012;
    --primary-rgb: 201, 168, 76;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Estado */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Espaciado */
    --section-padding: 120px;
    --container-max: 1280px;

    /* Tipografía */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
}

ul {
    list-style: none;
}

input,
select,
textarea {
    font-family: var(--font-body);
}

/* ==================== UTILIDADES ==================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold {
    background: linear-gradient(135deg, var(--primary-300) 0%, var(--primary-500) 50%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-500);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== GLASS CARD ==================== */
.glass-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.07) 0%, rgba(var(--primary-rgb), 0.03) 50%, rgba(var(--primary-rgb), 0.07) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.2), 0 0 0 1px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-4px);
}

.glass-card-gold {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.08) 50%, rgba(var(--primary-rgb), 0.15) 100%);
    border-color: rgba(var(--primary-rgb), 0.4);
}

/* ==================== BOTONES ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 40%, var(--primary-400) 70%, var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.05);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
    border-radius: 16px;
}

.btn-form {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 18px 32px;
    font-size: 17px;
    position: relative;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.4));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.nav-cta {
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-400);
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-500);
    color: #000;
    border-color: var(--primary-500);
}

/* Menu hamburguesa */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-400);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-cta {
    color: var(--primary-400);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 20%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%), radial-gradient(ellipse at 10% 80%, rgba(var(--primary-rgb), 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.6);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(80px, -80px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-40px, -160px);
        opacity: 0.5;
    }

    75% {
        transform: translate(-80px, -80px);
        opacity: 0.7;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 24px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-subtitle strong {
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-500);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-quaternary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(var(--primary-rgb), 0.4), transparent);
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.hero-img {
    width: 100%;
    border-radius: 24px;
    filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.3));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(1deg);
    }

    50% {
        transform: translateY(-8px) rotate(-1deg);
    }

    75% {
        transform: translateY(-18px) rotate(0.5deg);
    }
}

/* Tarjetas flotantes */
.floating-card {
    position: absolute;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--primary-rgb), 0.1);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    bottom: 30px;
    left: -20px;
    animation-delay: -2s;
}

.card-2 {
    top: 30px;
    right: -20px;
    animation-delay: -4s;
}

.floating-card-icon {
    font-size: 28px;
}

.floating-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-400);
}

.floating-card-sub {
    font-size: 12px;
    color: var(--text-quaternary);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 2px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-quaternary);
}

/* ==================== SOCIAL PROOF ==================== */
.social-proof {
    padding: 40px 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
    background: rgba(var(--primary-rgb), 0.02);
}

.social-proof-label {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-quaternary);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 18px;
}

/* ==================== SERVICIOS - FLIP CARDS ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.service-card-flip {
    height: 380px;
    perspective: 1500px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

/* El frente no debe capturar clics cuando está girado (invisible) */
.service-card-flip:hover .service-card-front,
.service-card-flip.flipped .service-card-front {
    pointer-events: none;
}

/* El reverso sí debe capturar clics cuando está visible */
.service-card-flip:hover .service-card-back,
.service-card-flip.flipped .service-card-back {
    pointer-events: all;
    overflow: visible;
}

.service-card-front {
    background: var(--bg-card);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-flip:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-icon-front {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.6));
}

.service-title-front {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-badge {
    display: inline-block;
    background: var(--primary-500);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
}

/* Back de flip card */
.service-card-back {
    transform: rotateY(180deg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    pointer-events: none;
}

.service-back-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(var(--primary-rgb), 0.5));
}

.service-title-back {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.service-description {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary-400);
}

.feature-tag-gold {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.5);
    color: var(--primary-300);
}

.service-cta-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    background: var(--primary-500);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-cta-btn:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
}

/* CSS Art para service_5 y service_6 */
.service-card-front-css {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    position: relative;
}

.service-css-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 140px;
}

.css-bar {
    width: 28px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--primary-700), var(--primary-400));
    animation: bar-grow 3s ease-in-out infinite alternate;
}

.css-bar-1 {
    height: 60%;
    animation-delay: 0s;
}

.css-bar-2 {
    height: 80%;
    animation-delay: 0.2s;
}

.css-bar-3 {
    height: 50%;
    animation-delay: 0.4s;
}

.css-bar-4 {
    height: 95%;
    animation-delay: 0.6s;
}

.css-bar-5 {
    height: 70%;
    animation-delay: 0.8s;
}

@keyframes bar-grow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.6));
    }
}

.css-line {
    position: absolute;
    bottom: 100px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(var(--primary-rgb), 0.4), transparent);
}

.service-css-art-2 {
    flex-direction: column;
    gap: 20px;
}

.css-handshake {
    display: flex;
    align-items: center;
    gap: 0;
}

.css-hand {
    width: 60px;
    height: 40px;
    border: 3px solid rgba(var(--primary-rgb), 0.6);
    border-radius: 30px;
    position: relative;
}

.css-hand-left {
    border-right: none;
    margin-right: -10px;
}

.css-hand-right {
    border-left: none;
    margin-left: -10px;
}

.css-circles {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: pulse-ring 3s ease-in-out infinite;
}

.css-c1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.css-c2 {
    width: 160px;
    height: 160px;
    animation-delay: 0.5s;
}

.css-c3 {
    width: 220px;
    height: 220px;
    animation-delay: 1s;
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ==================== PROCESO ==================== */
.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.process-step {
    text-align: center;
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.step-content {
    padding: 24px;
    text-align: left;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-400);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.5), rgba(var(--primary-rgb), 0.2));
    margin-top: 80px;
    align-self: start;
}

/* ==================== TESTIMONIOS ==================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    position: relative;
}

.quote-mark {
    font-size: 80px;
    line-height: 0.7;
    color: var(--primary-500);
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

.testimonial-author>div:nth-child(2) {
    flex: 1;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.testimonial-author small {
    font-size: 13px;
    color: var(--text-quaternary);
}

.stars {
    font-size: 14px;
}

/* ==================== VALORACIÓN FORM ==================== */
.valoracion-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.valoracion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.valoracion-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.valoracion-desc {
    font-size: 17px;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin: 24px 0 32px;
}

.valoracion-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-secondary);
}

.benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.valoracion-form-card {
    padding: 40px;
}

.form-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-400);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: var(--text-quaternary);
}

.valoracion-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-input.error {
    border-color: var(--error);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C9A84C' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    display: none;
}

.form-error.show {
    display: block;
}

.form-check {
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked+.checkmark {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.checkbox-label input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

.link-gold {
    color: var(--primary-400);
    transition: color 0.3s;
}

.link-gold:hover {
    color: var(--primary-300);
    text-decoration: underline;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-spinner.show {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estado éxito */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.form-success.show {
    display: flex;
}

.success-icon {
    font-size: 56px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-400);
}

.form-success p {
    font-size: 16px;
    color: var(--text-tertiary);
    max-width: 380px;
    line-height: 1.7;
}

.success-sub {
    margin-top: 8px;
}

/* ==================== NOSOTROS ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.about-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo-large {
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.3));
    position: relative;
    z-index: 1;
}

.about-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.about-badge-1 {
    bottom: 0;
    left: -20px;
}

.about-badge-2 {
    top: 20px;
    right: -30px;
}

.about-badge span {
    font-size: 24px;
}

.about-badge strong {
    display: block;
    font-size: 14px;
    color: var(--primary-400);
    font-weight: 700;
}

.about-badge small {
    font-size: 12px;
    color: var(--text-quaternary);
}

.about-text {
    font-size: 17px;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text-secondary);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.08);
}

.value-icon {
    font-size: 24px;
}

.value-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.value-item small {
    font-size: 12px;
    color: var(--text-quaternary);
}

/* ==================== CTA FINAL ==================== */
.cta-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    background: var(--bg-secondary);
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-disclaimer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-quaternary);
}

.pulse-animation {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), 0 0 60px rgba(var(--primary-rgb), 0.2);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.7), 0 0 100px rgba(var(--primary-rgb), 0.4);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: #000;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-style: italic;
    color: var(--primary-500);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-quaternary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-400);
    transform: translateY(-2px);
}

.social-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-500);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-quaternary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-quaternary);
}

.contact-icon {
    font-size: 16px;
}

.footer-contact a {
    color: var(--text-quaternary);
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-quaternary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-quaternary);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ==================== ANIMACIONES DE REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

/* ==================== GRADIENT SHIFT ANIMATION ==================== */
@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1100px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-grid {
        gap: 48px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .process-connector {
        display: none;
    }

    .valoracion-wrapper {
        gap: 48px;
    }
}

/* Tablet pequeño */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-badge {
        justify-content: center;
        width: fit-content;
        margin: 0 auto 28px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 380px;
    }

    .floating-card {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        margin-bottom: 24px;
    }

    .valoracion-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 64px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 52px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 340px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .valoracion-form-card {
        padding: 24px;
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-badge {
        font-size: 13px;
        padding: 10px 16px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .particle:nth-child(n+20) {
        display: none;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .about-badge {
        display: none;
    }
}

/* ==================== TARJETA ESTÁTICA (Estudio de Mercado) ==================== */
.service-card-static {
    height: auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    overflow: visible;
    position: relative;
}

.service-static-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-css-art-mini {
    height: 56px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 8px;
}

/* ==================== CSS ART: GRÁFICO DE BARRAS ==================== */
.css-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.css-bar {
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--primary-700), var(--primary-400));
    animation: bar-grow 3s ease-in-out infinite alternate;
    min-width: 20px;
    flex: 1;
    max-width: 32px;
}

.css-bar-1 {
    height: 55%;
    animation-delay: 0s;
}

.css-bar-2 {
    height: 80%;
    animation-delay: 0.2s;
}

.css-bar-3 {
    height: 45%;
    animation-delay: 0.4s;
}

.css-bar-4 {
    height: 95%;
    animation-delay: 0.6s;
}

.css-bar-5 {
    height: 65%;
    animation-delay: 0.8s;
}

@keyframes bar-grow {
    0% {
        opacity: 0.5;
        filter: none;
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.5));
    }
}

/* CSS art línea de referencia */
.css-line {
    position: absolute;
    bottom: 30%;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--primary-rgb), 0.4), transparent);
}

/* CSS art handshake */
.css-handshake {
    display: flex;
    align-items: center;
}

.css-hand {
    width: 52px;
    height: 36px;
    border: 3px solid rgba(var(--primary-rgb), 0.6);
    border-radius: 24px;
}

.css-hand-left {
    border-right: none;
    margin-right: -8px;
}

.css-hand-right {
    border-left: none;
    margin-left: -8px;
}

.css-circles {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: pulse-ring 3s ease-in-out infinite;
}

.css-c1 {
    width: 90px;
    height: 90px;
    animation-delay: 0s;
}

.css-c2 {
    width: 150px;
    height: 150px;
    animation-delay: 0.5s;
}

.css-c3 {
    width: 210px;
    height: 210px;
    animation-delay: 1s;
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.05);
    }
}

/* Descripción CTA dorada */
.service-description-cta {
    font-size: 13px !important;
    color: var(--primary-400) !important;
    margin-top: 4px;
    line-height: 1.6;
}

.service-description-cta strong {
    color: var(--primary-300);
}

/* Feature tag como enlace */
.feature-tag-link {
    cursor: pointer;
    border-color: rgba(var(--primary-rgb), 0.45) !important;
    color: var(--primary-300) !important;
    transition: all 0.3s ease;
}

.feature-tag-link:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

/* Responsive: tarjeta estática en mobile */
@media (max-width: 767px) {
    .service-card-static {
        height: auto;
        min-height: 280px;
    }
}