/**
 * Estilos - Gestor TSALVA Landing
 * Diseño moderno y profesional
 */

/* ========================================
   Variables CSS
======================================== */
:root {
    --tsalva-dark-blue: #100047;
    --tsalva-sea-blue: #003B6E;
    --tsalva-green: #00C780;
    --tsalva-light-grey: #BBB8BC;
    --tsalva-white: #ffffff;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--tsalva-dark-blue) 0%, var(--tsalva-sea-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--tsalva-sea-blue) 0%, var(--tsalva-green) 100%);

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 199, 128, 0.3);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Espaciado de secciones */
    --section-padding: 5rem 0;
    --section-padding-lg: 7rem 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--tsalva-dark-blue);
    color: var(--tsalva-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px; /* Altura del navbar fijo */
}

/* ========================================
   Utilidades
======================================== */
.text-primary {
    color: var(--tsalva-green) !important;
}

.text-light-grey {
    color: var(--tsalva-light-grey);
}

.bg-dark-blue {
    background-color: var(--tsalva-dark-blue);
}

.bg-sea-blue {
    background-color: var(--tsalva-sea-blue);
}

.bg-light-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--tsalva-dark-blue);
}

.bg-light-section .text-light-grey,
.bg-light-section p {
    color: #555 !important;
}

.bg-light-section .section-badge {
    background-color: rgba(0, 199, 128, 0.15);
    color: var(--tsalva-sea-blue);
    border-color: var(--tsalva-green);
}

.bg-light-section .feature-card,
.bg-light-section .industry-card,
.bg-light-section .step-card {
    background-color: white;
    border-color: rgba(0, 59, 110, 0.15);
}

.bg-light-section .feature-card h4,
.bg-light-section .industry-card h5,
.bg-light-section .step-card h4 {
    color: var(--tsalva-dark-blue);
}

.bg-light-section .section-title {
    color: var(--tsalva-dark-blue);
}

.bg-light-section .btn-outline-light {
    border-color: var(--tsalva-sea-blue);
    color: var(--tsalva-sea-blue);
}

.bg-light-section .btn-outline-light:hover {
    background-color: var(--tsalva-sea-blue);
    color: white;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--tsalva-green) 0%, #00a86b 100%);
}

/* ========================================
   Navbar
======================================== */
header.fixed-top {
    background-color: rgba(16, 0, 71, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 59, 110, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1030;
    transition: var(--transition-normal);
}

header.fixed-top.scrolled {
    background-color: rgba(16, 0, 71, 0.98);
    box-shadow: var(--shadow-md);
}

#mainNav {
    padding: 0.8rem 0;
    transition: var(--transition-normal);
}

#mainNav .nav-link {
    color: var(--tsalva-light-grey);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: var(--tsalva-green);
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--tsalva-green);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

#mainNav .nav-link:hover::after {
    width: 60%;
}

/* ========================================
   Botones
======================================== */
.btn-primary {
    background-color: var(--tsalva-green);
    border-color: var(--tsalva-green);
    color: var(--tsalva-white);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #00a86b;
    border-color: #00a86b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition-normal);
}

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

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* ========================================
   Secciones
======================================== */
section {
    padding: var(--section-padding);
    position: relative;
}

@media (min-width: 992px) {
    section {
        padding: var(--section-padding-lg);
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 199, 128, 0.15);
    color: var(--tsalva-green);
    border: 1px solid rgba(0, 199, 128, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--tsalva-light-grey);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    background: var(--gradient-primary);
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(0,199,128,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--tsalva-light-grey);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Stats Cards */
.stat-card {
    background-color: rgba(0, 59, 110, 0.3);
    border: 1px solid rgba(0, 199, 128, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--tsalva-green);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tsalva-green);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--tsalva-light-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Mockup */
.hero-mockup-wrapper {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(0, 199, 128, 0.25) 0%, rgba(0, 59, 110, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.hero-mockup img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    border-radius: 12px;
}

.hero-mockup::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: linear-gradient(135deg, rgba(0, 199, 128, 0.1) 0%, transparent 50%, rgba(0, 59, 110, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

/* ========================================
   Feature Cards
======================================== */
.feature-card {
    background-color: rgba(0, 59, 110, 0.2);
    border: 1px solid rgba(0, 59, 110, 0.5);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--tsalva-green);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 199, 128, 0.15);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--tsalva-green);
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--tsalva-light-grey);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.feature-card .feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--tsalva-green);
    color: var(--tsalva-dark-blue);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.feature-card {
    position: relative;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--tsalva-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.feature-link:hover {
    color: var(--tsalva-white);
    transform: translateX(5px);
}

/* ========================================
   Industry Cards
======================================== */
.industry-card {
    background-color: rgba(0, 59, 110, 0.15);
    border: 1px solid rgba(0, 59, 110, 0.4);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--tsalva-green);
    background-color: rgba(0, 199, 128, 0.1);
}

.industry-card.featured {
    border-color: var(--tsalva-green);
    background-color: rgba(0, 199, 128, 0.1);
}

.industry-card.featured .industry-badge {
    display: inline-block;
}

.industry-badge {
    display: none;
    background-color: var(--tsalva-green);
    color: var(--tsalva-dark-blue);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.industry-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 199, 128, 0.15);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
}

.industry-icon i {
    font-size: 1.75rem;
    color: var(--tsalva-green);
}

.industry-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.industry-card p {
    color: var(--tsalva-light-grey);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   How It Works (Steps)
======================================== */
.step-card {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--tsalva-light-grey);
    font-size: 0.95rem;
}

/* Step connector line */
@media (min-width: 768px) {
    .steps-container {
        position: relative;
    }

    .steps-container::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 15%;
        right: 15%;
        height: 2px;
        background: linear-gradient(90deg, var(--tsalva-sea-blue), var(--tsalva-green), var(--tsalva-sea-blue));
        z-index: 0;
    }

    .step-number {
        position: relative;
        z-index: 1;
    }
}

/* ========================================
   Download Buttons
======================================== */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(16, 0, 71, 0.6);
    border: 2px solid rgba(0, 199, 128, 0.4);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: var(--transition-normal);
    min-width: 180px;
}

.download-btn:hover {
    transform: translateY(-3px);
    border-color: var(--tsalva-green);
    background-color: rgba(0, 199, 128, 0.15);
    box-shadow: var(--shadow-glow);
}

.download-btn i {
    font-size: 2rem;
    color: var(--tsalva-green);
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.download-btn-text small {
    font-size: 0.7rem;
    color: var(--tsalva-light-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn-text span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tsalva-white);
}

/* ========================================
   Testimonials
======================================== */
.testimonial-card {
    background-color: rgba(0, 59, 110, 0.2);
    border: 1px solid rgba(0, 59, 110, 0.5);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--tsalva-light-grey);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-card .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--tsalva-green);
    opacity: 0.5;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.testimonial-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-info small {
    color: var(--tsalva-light-grey);
}

/* ========================================
   Contact Form
======================================== */
.contact-section {
    background: var(--gradient-primary);
}

.contact-form {
    background-color: rgba(0, 59, 110, 0.3);
    border: 1px solid rgba(0, 59, 110, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-control,
.form-select {
    background-color: rgba(16, 0, 71, 0.5);
    border: 1px solid rgba(0, 59, 110, 0.5);
    color: var(--tsalva-white);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(16, 0, 71, 0.7);
    border-color: var(--tsalva-green);
    box-shadow: 0 0 0 3px rgba(0, 199, 128, 0.2);
    color: var(--tsalva-white);
}

.form-control::placeholder {
    color: var(--tsalva-light-grey);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--tsalva-white);
}

.form-select option {
    background-color: var(--tsalva-dark-blue);
}

/* Contact Info */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 199, 128, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.25rem;
    color: var(--tsalva-green);
}

.contact-info-text h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
    color: var(--tsalva-light-grey);
    margin-bottom: 0;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-info-text a:hover {
    color: var(--tsalva-green);
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: var(--gradient-accent);
    text-align: center;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--tsalva-dark-blue);
    border-top: 1px solid rgba(0, 59, 110, 0.5);
}

.footer-title {
    color: var(--tsalva-white);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--tsalva-light-grey);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--tsalva-green);
}

.footer-divider {
    border-color: rgba(0, 59, 110, 0.5);
    margin: 1.5rem 0;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 199, 128, 0.1);
    border: 1px solid rgba(0, 199, 128, 0.3);
    border-radius: 50%;
    color: var(--tsalva-green);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--tsalva-green);
    color: var(--tsalva-dark-blue);
    transform: translateY(-3px);
}

/* ========================================
   WhatsApp Float Button
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    #mainNav .navbar-collapse {
        background-color: var(--tsalva-dark-blue);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        border: 1px solid rgba(0, 59, 110, 0.5);
    }

    #mainNav .nav-link {
        padding: 0.75rem 1rem;
    }

    #mainNav .nav-link::after {
        display: none;
    }
}

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

    .contact-form {
        padding: 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
