﻿/* ====================================
   COCRIANZA LANDING - CSS PERSONALIZADO
   Archivo: wwwroot/css/Landing/CoCrianza_Landing.css
   ==================================== */

.logo-img {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 576px) {
    .logo-img {
        height: 32px;
    }

    .navbar-brand {
        font-size: 1.5rem !important;
    }
}

/* ====================================
   NAVEGACIÓN PERSONALIZADA
   ==================================== */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cocrianza-gris-perla);
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background-color: rgba(253, 246, 240, 0.95) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

.navbar-brand {
    font-size: 1.75rem !important;
    font-weight: 700;
    transition: transform 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

.nav-link {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--cocrianza-coral-suave);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--cocrianza-melocoton-claro) 0%, var(--cocrianza-beige-neutro) 100%);
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 183, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-content .lead {
        font-size: 1.25rem;
        line-height: 1.6;
    }

.trust-indicators {
    padding: 1rem 0;
    border-top: 1px solid var(--cocrianza-gris-perla);
    margin-top: 1rem;
}

/* Hero Mockup */
.hero-mockup {
    max-width: 400px;
    margin: 0 auto;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

    .hero-mockup:hover {
        transform: rotate(0deg) scale(1.02);
    }

.mini-calendar {
    gap: 0.5rem;
}

.day-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.expense-item {
    font-size: 0.9rem;
}

/* ====================================
   MÓDULOS SECTION
   ==================================== */
.modules-section {
    padding: 5rem 0;
}

.module-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .module-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 1;
    }

    .module-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

        .module-card:hover::before {
            top: -20%;
            right: -20%;
            width: 200px;
            height: 200px;
        }

.icon-circle {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.module-card:hover .icon-circle {
    transform: scale(1.1);
}

/* CoKids específico */
.module-card.bg-cocrianza-melocoton:hover {
    border-color: var(--cocrianza-coral-suave);
}

/* CoMascotas específico */
.module-card.bg-cocrianza-verde:hover {
    border-color: var(--cocrianza-verde-salvia);
    box-shadow: 0 20px 40px rgba(191, 216, 184, 0.3);
}

/* ====================================
   BENEFICIOS SECTION
   ==================================== */
.benefits-section {
    padding: 5rem 0;
}

.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .benefit-card:hover {
        transform: translateY(-5px);
        border-color: var(--cocrianza-gris-perla);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.benefit-icon {
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* ====================================
   CTA SECTION
   ==================================== */
.cta-section {
    background: linear-gradient(135deg, var(--cocrianza-coral-suave) 0%, #e89f84 100%);
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: ctaFloat 6s ease-in-out infinite;
    }

@keyframes ctaFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

/* ====================================
   BOTONES PERSONALIZADOS
   ==================================== */
.btn-cocrianza-primary {
    background: linear-gradient(135deg, var(--cocrianza-coral-suave) 0%, #e89f84 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-cocrianza-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-cocrianza-primary:hover::before {
        left: 100%;
    }

    .btn-cocrianza-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 183, 165, 0.4);
        background: linear-gradient(135deg, #e89f84 0%, var(--cocrianza-coral-suave) 100%);
    }

/* ====================================
   FOOTER PERSONALIZADO
   ==================================== */
footer {
    background: #1a1a1a !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

    .social-links a:hover {
        background: var(--cocrianza-coral-suave);
        transform: translateY(-3px);
        color: white !important;
    }

/* ====================================
   ANIMACIONES AOS PERSONALIZADAS
   ==================================== */
[data-aos="fade-up"] {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
}

    [data-aos="fade-up"].aos-animate {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

[data-aos="fade-right"] {
    transform: translate3d(-40px, 0, 0);
    opacity: 0;
}

    [data-aos="fade-right"].aos-animate {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

[data-aos="fade-left"] {
    transform: translate3d(40px, 0, 0);
    opacity: 0;
}

    [data-aos="fade-left"].aos-animate {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .hero-mockup {
        margin-top: 2rem;
        transform: rotate(0deg);
        max-width: 300px;
    }

    .navbar-brand {
        font-size: 1.5rem !important;
    }

    .modules-section,
    .benefits-section {
        padding: 3rem 0;
    }

    .module-card,
    .benefit-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-section {
        padding-top: 100px;
    }
}

/* ====================================
   UTILIDADES ADICIONALES
   ==================================== */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--cocrianza-coral-suave), var(--cocrianza-verde-salvia));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ====================================
   NAVEGACIÓN DE PESTAÑAS - FUNCIONES
   ==================================== */
.function-nav-pills {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: fit-content;
}

    .function-nav-pills .nav-item {
        margin: 0 0.25rem;
    }

    .function-nav-pills .nav-link {
        background: transparent;
        border: none;
        color: var(--cocrianza-gris-calido) !important;
        font-weight: 500;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
    }

        .function-nav-pills .nav-link:hover {
            color: var(--cocrianza-coral-suave) !important;
            background: rgba(255, 183, 165, 0.1);
            transform: translateY(-2px);
        }

        .function-nav-pills .nav-link.active {
            background: var(--cocrianza-coral-suave) !important;
            color: white !important;
            box-shadow: 0 4px 15px rgba(255, 183, 165, 0.4);
            transform: translateY(-1px);
        }

            .function-nav-pills .nav-link.active:hover {
                background: var(--cocrianza-coral-suave) !important;
                color: white !important;
                transform: translateY(-2px);
            }

    /* Sobrescribir estilos de Bootstrap específicamente */
    .function-nav-pills .nav-pills .nav-link.active,
    .function-nav-pills .nav-pills .show > .nav-link {
        color: white !important;
        background-color: var(--cocrianza-coral-suave) !important;
    }

/* Responsive para móviles */
@media (max-width: 768px) {
    .function-nav-pills {
        border-radius: 15px;
        padding: 0.25rem;
    }

        .function-nav-pills .nav-link {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }
}

/* ====================================
   NAVEGACIÓN MÓVIL - MEJORAS
   ==================================== */

/* Quitar subrayado en enlaces activos móvil */
@media (max-width: 991px) {
    .navbar-nav .nav-link.active {
        text-decoration: none !important;
        background: rgba(255, 183, 165, 0.1);
        border-radius: 8px;
        margin-bottom: 4px;
        color: var(--cocrianza-coral-suave) !important;
        font-weight: 600;
        position: relative;
    }

        .navbar-nav .nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: var(--cocrianza-coral-suave);
            border-radius: 2px;
        }

    .navbar-nav .nav-link {
        text-decoration: none !important;
        padding: 8px 16px;
        margin: 2px 0;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

        .navbar-nav .nav-link:hover {
            background: rgba(255, 183, 165, 0.05);
            color: var(--cocrianza-coral-suave) !important;
        }

    /* Mejorar el botón Acceder en móvil */
    .navbar-nav .btn-cocrianza-primary {
        margin-top: 12px;
        margin-left: 0 !important;
        padding: 12px 24px;
        display: block;
        text-align: center;
    }

    /* Espaciado del navbar collapse */
    .navbar-collapse {
        margin-top: 16px;
        padding: 16px 0;
        border-top: 1px solid rgba(255, 183, 165, 0.2);
    }

    /* Hamburger menu mejorado */
    .navbar-toggler {
        border: 1px solid rgba(255, 183, 165, 0.3);
        padding: 6px 8px;
    }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 0.2rem rgba(255, 183, 165, 0.25);
        }
}

/* Mejoras generales para todos los tamaños */
.navbar-nav .nav-link {
    text-decoration: none !important;
}

    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
        text-decoration: none !important;
    }

/* Asegurar que no hay subrayados en ningún enlace de navegación */
.navbar a {
    text-decoration: none !important;
}

    .navbar a:hover {
        text-decoration: none !important;
    }

/* ====================================
   FIX ICONOS HERO MOCKUP
   ==================================== */

/* Centrar iconos en el panel de control del hero */
.hero-mockup .function-preview .bg-cocrianza-melocoton,
.hero-mockup .function-preview .bg-cocrianza-turquesa-palido,
.hero-mockup .function-preview .bg-cocrianza-amarillo-mostaza,
.hero-mockup .benefit-preview .bg-cocrianza-coral,
.hero-mockup .benefit-preview .bg-cocrianza-verde,
.hero-mockup .benefit-preview .bg-cocrianza-amarillo-mostaza {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

/* Asegurar que los iconos dentro están centrados */
.hero-mockup .function-preview i,
.hero-mockup .benefit-preview i,
.hero-mockup .team-preview i {
    display: block;
    text-align: center;
    line-height: 1;
    margin: 0;
}

/* Ajustar el contenedor de los items */
.hero-mockup .function-preview .d-flex,
.hero-mockup .benefit-preview .d-flex,
.hero-mockup .team-preview .d-flex {
    align-items: center;
    gap: 8px;
}

/* Específico para los círculos pequeños de iconos */
.hero-mockup [style*="width: 20px"][style*="height: 20px"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Asegurar que el texto no se superpone */
.hero-mockup .function-preview small,
.hero-mockup .benefit-preview small,
.hero-mockup .team-preview small {
    flex: 1;
    margin: 0;
}