:root {
    /* Colores */
    --blue: #0372B9;
    --blue-dark: #004e80;
    --blue-light: #e6f2fa;
    --lime: #8BC43F;
    --lime-light: #f0f7e6;
    --orange: #F47A20;
    --mint: #00BD95;
    --yellow: #FFB100;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--lime) 0%, #76a835 100%);
    
    /* Tipografía */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Espaciado */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    
    /* Sombras */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-hover: 0 25px 50px -12px rgba(3, 114, 185, 0.25);
    --shadow-glow: 0 0 20px rgba(139, 196, 63, 0.4);
    
    /* Radios */
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    color: var(--text-dark);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(3, 114, 185, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(3, 114, 185, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(3, 114, 185, 0.2);
}

/* Header Transparente -> Glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto; /* Push everything else to the right */
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--lime);
    border-radius: 2px;
}

.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.nav-phone svg {
    width: 22px;
    height: 22px;
    fill: var(--lime);
    filter: drop-shadow(0 2px 4px rgba(139, 196, 63, 0.3));
}

/* Hero Section - IMPACTANTE */
.hero {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(139, 196, 63, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(3, 114, 185, 0.1), transparent 50%),
                #ffffff;
    overflow: hidden;
    position: relative;
}

/* Decorative Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 { top: -10%; right: -5%; width: 600px; height: 600px; background: rgba(139, 196, 63, 0.2); animation: float 10s infinite ease-in-out; }
.blob-2 { bottom: -10%; left: -5%; width: 500px; height: 500px; background: rgba(3, 114, 185, 0.15); animation: float 12s infinite ease-in-out reverse; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 40px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(3, 114, 185, 0.1);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 90%;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--lime) 0%, #76a835 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 196, 63, 0.3);
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
}

.trust-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(3, 114, 185, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-image-placeholder {
    width: 100%;
    height: 650px;
    background-color: #e2e8f0;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid rgba(255, 255, 255, 0.5);
    /* Forma orgánica personalizada */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph-hero 8s ease-in-out infinite;
    transform: translateZ(0);
}

@keyframes morph-hero {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image-placeholder img {
    transform: scale(1.05);
}

/* Floating Badge */
.hero-badge {
    position: absolute;
    bottom: 10%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* White header text for dark backgrounds */
header.header-white .logo-name { color: var(--white); }
header.header-white .logo-subtitle { color: rgba(255,255,255,0.9); }
header.header-white.scrolled .logo-name { color: var(--blue); }
header.header-white.scrolled .logo-subtitle { color: var(--text-light); }
