:root {
    --primary: #0c5adb;
    --secondary: #ec8435;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

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

/* ===== NAVBAR ===== */
.navbar-custom {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    max-height: 45px;
    transition: transform 0.3s ease;
    width: 10em;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ec8435;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #ec8435 !important;
}

.btn-nav-primary {
    background: #ec8435;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(12, 90, 219, 0.2);
    text-decoration: none;
}

.btn-nav-primary:hover {
    background: #cd6719;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 90, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #0c5adb;
    color: white;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.top-bar i {
    margin-right: 0.4rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #0c5adb 0%, #ec8435 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0.08;
    z-index: 1;
}

.hero>.container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--primary);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== CONTACT FORM CARD ===== */
.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.contact-form-card h3 {
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.form-control-custom {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    width: 100%;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.1);
    background: white;
    outline: none;
}

.form-select-custom {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    width: 100%;
}

.form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.1);
    background: white;
    outline: none;
}

.btn-submit {
    background: #ec8435;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12, 90, 219, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 90, 219, 0.4);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ===== FEATURE CARDS ===== */
.feature-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: #ec8435;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===== IMAGE + TEXT BLOCKS ===== */
.content-block {
    margin-bottom: 4rem;
}

.content-block img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.content-block h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-block p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.btn-secondary-custom {
    background: var(--secondary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(236, 132, 53, 0.3);
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(236, 132, 53, 0.4);
    color: white;
}

/* ===== BENEFIT CARDS WITH ICONS ===== */
.benefit-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-card:hover i {
    transform: scale(1.1);
    color: var(--secondary);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===== CRITERIA SECTION ===== */
.criteria-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 5rem 0;
    color: white;
}

.criteria-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: #fafafa;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.criteria-item:hover {
    background: white;
    border-left-color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.criteria-item img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.criteria-item p {
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.criteria-item strong {
    color: var(--text);
    font-weight: 700;
}

/* ===== CTA BLOCKS ===== */
.cta-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    height: 100%;
    transition: all 0.3s ease;
}

.cta-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cta-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.cta-block p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-block-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.cta-block-gradient h3,
.cta-block-gradient p {
    color: white;
}

.cta-block-gradient i {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer p {
    line-height: 1.8;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* ===== FLOATING SIDEBAR ===== */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-sidebar a {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    right: 0;
    overflow: hidden;
    width: 60px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-sidebar a:nth-child(1) {
    top: -60px;
}

.floating-sidebar a:nth-child(2) {
    top: 0;
}

.floating-sidebar a:nth-child(3) {
    top: 60px;
}

.floating-sidebar a:hover {
    width: 200px;
    background: var(--secondary);
}

.floating-sidebar a i {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-right: 0.8rem;
}

.floating-sidebar a span {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.floating-sidebar a:hover span {
    opacity: 1;
}

.floating-sidebar .whatsapp {
    background: #25d366;
}

.floating-sidebar .whatsapp:hover {
    background: #1ea952;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-custom {
        padding: 0.5rem 0;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .btn-hero {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .floating-sidebar {
        display: none;
    }
}

/* Validación de teléfono */
#valid-msg,
#error-msg {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

#valid-msg {
    color: #10b981;
}

#error-msg {
    color: #ef4444;
}