:root {
    /* Paleta de colores solicitada */
    --primary-color: #061c6b; /* Azul Profundo */
    --accent-color: #07ba86;  /* Verde/Turquesa vibrante */
    --secondary-color: #4a5568;
    --light-bg: #f8f9fa;
    --dark-bg: #1a202c;
    --text-dark: #333;
    --text-muted: #6c757d;

    /* Gradiente de Marca */
    --brand-gradient: linear-gradient(135deg, #061c6b 0%, #07ba86 100%);
    --brand-gradient-hover: linear-gradient(135deg, #041545 0%, #06966f 100%);

    /* UI Elements */
    --nav-height: 80px;
    --nav-bg-scrolled: rgba(4, 19, 46, 0.95);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(6, 28, 107, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; }

/* --- UTILIDADES --- */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-gradient {
    background: white;
    color: var(--primary-color);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    display: inline-block;
    padding: 0.18rem 0.7rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    font-weight: 800;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

/* --- BOTONES --- */
.btn-brand {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(7, 186, 134, 0.3);
}

.btn-brand:hover {
    background: #06966f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 186, 134, 0.4);
    color: white;
}

.btn-outline-brand {
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    transition: var(--transition);
}

.btn-outline-brand:hover {
    background: white;
    color: var(--primary-color);
}

/* --- NAVBAR --- */
.navbar {
    transition: var(--transition);
    padding: 15px 0;
    background: rgba(4, 19, 46, 0.72);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after { width: calc(100% - 2rem); }

/* --- NAVBAR TOGGLER (Móviles) --- */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 28, 107, 0.92), rgba(7, 186, 134, 0.88)), url('/assets/img/banner1.png') center/cover no-repeat;
    color: white;
    padding-top: 140px;
    padding-bottom: 100px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

/* --- TARJETAS (Services / Features) --- */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(6, 28, 107, 0.05);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--brand-gradient);
    color: white;
    transform: rotateY(180deg);
}

/* --- SECCIÓN SEGURIDAD 3 PASOS --- */
.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(6, 28, 107, 0.05);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content { position: relative; z-index: 1; }

/* --- COMPARATIVA (NO ES...) --- */
.vs-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid transparent;
}

.vs-card.good { border-color: var(--accent-color); }
.vs-card.bad { border-color: #dc3545; }

.vs-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* --- PRECIOS (estilo SmartPend) --- */
.pricing-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #eee;
    height: 100%;
    background: white;
    border-radius: 16px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    position: relative;
    box-shadow: 0 10px 25px rgba(6, 28, 107, 0.15);
}

.pricing-card.recommended:hover {
    border-color: var(--accent-color);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 10;
    background: var(--brand-gradient);
    border: none;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-currency {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 4px;
    vertical-align: super;
}

.pricing-card .price-period {
    color: var(--text-muted);
}

.feature-list strong {
    font-size: 1rem;
    text-align: left;
}

.feature-list small {
    line-height: 1.35;
    text-align: left;
}

.feature-list,
.feature-list li,
.feature-list li > div {
    text-align: left;
}

.btn-group .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: #06966f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 186, 134, 0.3);
}

.btn-outline-accent {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent-color);
    color: white;
}

#precios .section-title {
    text-align: center;
}

/* --- CONTACTO & FOOTER --- */
.footer {
    background-color: #04132e;
    color: #adb5bd;
    padding: 60px 0 20px;
    border-top: 5px solid var(--accent-color);
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover { color: var(--accent-color); }

.footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer .social-icons a:hover {
    background-color: var(--accent-color);
    color: white;
}

.contact-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

/* --- TOAST --- */
.toast-custom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-custom.show { transform: translateX(0); }

.toast-custom i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* ----- SECTION TITLE ----- */
.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* ----- TESTIMONIOS ----- */
.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-color);
}

/* ----- TECNOLOGÍA ----- */
.tech-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.tech-icon {
    font-size: 2.5rem;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: block;
}

/* ----- SOCIAL ICONS (sección de contacto) ----- */
.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(6, 28, 107, 0.08);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(7,186,134,0.2) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .pricing-card.popular { transform: scale(1); }
}