:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --accent-color: #ffd700;
    --text-color: #212529;
    --muted-color: #6c757d;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --footer-bg: #16213e;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --fondo-logo: #142748;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar */
#landingNavbar {
    background: rgba(13, 18, 30, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    transition: var(--transition);
}

#landingNavbar .navbar-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.landing-logo {
    max-height: 42px;
}

#landingNavbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

#landingNavbar .nav-link:hover,
#landingNavbar .nav-link.active {
    color: var(--white);
}

.btn-login {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    padding-top: 90px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-content h1 {
    line-height: 1.2;
}

.text-accent {
    color: var(--accent-color);
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    max-height: 420px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Search box */
.search-wrapper {
    max-width: 480px;
    scroll-margin-top: 6.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 0.35rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    outline: none;
}

.search-box input::placeholder {
    color: #6c757d;
}

.search-box button {
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.search-wrapper:target .search-box,
.search-wrapper.search-highlight .search-box {
    animation: search-highlight 1.8s ease-in-out 2;
}

@keyframes search-highlight {
    0%, 100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); transform: scale(1); }
    50% { box-shadow: 0 0 0 0.55rem rgba(255, 215, 0, 0.45), 0 8px 30px rgba(0, 0, 0, 0.25); transform: scale(1.025); }
}

.search-error {
    color: #ff6b6b;
    margin-top: 0.75rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
}

.search-hint {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.search-hint strong {
    color: rgba(255, 255, 255, 0.95);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.35);
}

.btn-outline-light:hover {
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Sections */
section {
    position: relative;
}

.service-card {
    border-radius: 16px;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.2) 100%);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.about-image {
    max-height: 260px;
    object-fit: contain;
    background-color: var(--fondo-logo);
    padding: 1.5rem;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    position: relative;
    color: var(--white);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0h-2v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer-section {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white) !important;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.btn-subscribe { background: var(--accent-color); border-color: var(--accent-color); color: #16213e; }
.btn-subscribe:hover { background: #ffe34d; border-color: #ffe34d; color: #16213e; }
.register-link { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 600; }
.register-link:hover { color: var(--accent-color); }
.contact-card { position: relative; z-index: 2; padding: 2rem; border-radius: 1.25rem; background: #fff; box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.22); color: var(--text-color); scroll-margin-top: 6.5rem; }
.contact-card h2 { font-size: 1.45rem; font-weight: 700; }.contact-card p { color: var(--muted-color); }.contact-card .form-label { font-size: .85rem; font-weight: 600; }.contact-card .form-control { border-radius: .6rem; }.contact-message { min-height: 1.25rem; font-size: .86rem; margin-top: 1rem; }
.whatsapp-button { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 20; display: grid; width: 3.7rem; height: 3.7rem; place-items: center; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 .75rem 1.5rem rgba(37, 211, 102, .35); font-size: 1.8rem; text-decoration: none; }.whatsapp-button:hover { color: #fff; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        padding-bottom: 3rem;
    }

    .search-wrapper {
        margin: 0 auto;
    }

    .contact-card {
        text-align: start;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        display: block !important;
        padding-bottom: 2rem;
    }

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

    .btn-lg {
        padding: 0.6rem 1.25rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-wrapper:target .search-box,
    .search-wrapper.search-highlight .search-box {
        animation: none;
    }
}
