:root {
    /* Color Palette */
    --brand-blue: #003566;
    --brand-red: #E63946;
    --brand-dark: #1D3557;
    --brand-light: #F1F5F9;
    --white: #ffffff;
    --black: #000000;
    --text-main: #334155;
    --text-muted: #64748b;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, rgba(0, 53, 102, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(12px);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

.container-wide {
    max-width: 1440px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.mb-60 { margin-bottom: 60px; }
.bg-light { background-color: var(--brand-light); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 53, 102, 0.2);
}

.btn-action {
    background-color: var(--brand-red);
    color: var(--white);
}

.btn-action:hover {
    background-color: #c92f3b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.btn.compact {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 1000;
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    background: rgba(0, 53, 102, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo-text span {
    color: var(--brand-red);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.nav-links a:hover {
    color: var(--brand-red);
}

.mobile-toggle {
    display: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: -1;
}

.hero-content {
    position: relative;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
    background: linear-gradient(120deg, #E63946, #c92f3b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#mudanzas-counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-red);
    display: block;
}

.counter-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -5px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 100px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--brand-blue);
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.icon-wrap {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.trust-info strong {
    display: block;
    font-size: 1.25rem;
}

.trust-info span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* --- How it works --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.section-title.white {
    color: var(--white);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--brand-red);
    margin: 15px auto 0;
    border-radius: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 53, 102, 0.05);
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 53, 102, 0.1);
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 53, 102, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--brand-blue);
}

/* --- Philosophy Section --- */
.philosophy-container {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(0, 53, 102, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 53, 102, 0.05);
    border: 1px solid rgba(0, 53, 102, 0.05);
}

.philosophy-eyebrow {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
    display: block;
    margin-bottom: 20px;
}

.philosophy-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.philosophy-text {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
}

/* --- Premium Services Grid --- */
.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card-premium {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
    background: #1a1a1a;
}

.service-img-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
    opacity: 0.7;
}

.service-overlay-premium {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 30px;
    transition: var(--transition-smooth);
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,53,102,0.3);
}

.service-card-premium:hover .service-img-premium {
    transform: scale(1.08);
    opacity: 1;
}

.service-card-premium:hover .service-overlay-premium {
    background: linear-gradient(to top, rgba(0,53,102,0.95) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.service-content-premium h3 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.service-content-premium p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-premium:hover .service-content-premium h3 {
    transform: translateY(0);
}

.service-card-premium:hover .service-content-premium p {
    opacity: 1;
    transform: translateY(0);
}

.service-link-premium {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    background: var(--brand-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.1s;
}

.service-card-premium:hover .service-link-premium {
    opacity: 1;
    transform: translateX(0);
}

/* --- Testimonials --- */
.testimonials {
    background: var(--brand-dark);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    margin-top: 60px;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.testimonial-item {
    min-width: 100%;
    padding: 0 15px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.user-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-red);
}

.user-text h4 {
    font-size: 1.25rem;
}

.user-text span {
    opacity: 0.6;
    font-size: 0.875rem;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--brand-red);
    width: 30px;
    border-radius: 10px;
}

/* --- Companies grid --- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.logo-item {
    background: var(--white);
    border: 1px solid var(--brand-light);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logo-item:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
}

.logo-item img {
    max-height: 50px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.logo-item:hover img {
    opacity: 1;
}

.verify-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4ade80;
    color: var(--brand-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
}

.partner-cta {
    margin-top: 50px;
}

.cta-link {
    font-weight: 700;
    color: var(--brand-red);
}

/* --- Footer --- */
.footer {
    background: #001220;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    position: relative;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--brand-red);
    padding-left: 5px;
}

.footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    width: 300px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

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

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-in.active {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-newsletter { flex-direction: column; text-align: center; gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar { top: 0; left: 0; right: 0; border-radius: 0; }
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }
}
