@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1a365d;
    --secondary: #2d7e3e;
    --accent: #48bb78;
    --light: #f0fff4;
    --dark: #0a1526;
    --text: #2d3748;
    --light-text: #f7fafc;
    --gradient: linear-gradient(135deg, #1a365d 0%, #2d7e3e 100%);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #ffffff;
    overflow-x: hidden;
}

/* Navbar moderna */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem !important;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.1));
    margin-right: 12px;
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.btn-login {
    background: var(--gradient) !important;
    border: none !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

/* Hero Section Ultra Moderna */
        .hero-section {
            background: var(--gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 100px;
        }

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="0.3" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.4" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.7;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

.hero-slogan {
    font-size: 1.8rem;
    color: var(--light);
    font-weight: 400;
    margin-bottom: 32px;
    opacity: 0;
    animation: slideUp 1s ease forwards 0.3s;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: slideUp 1s ease forwards 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: slideUp 1s ease forwards 0.9s;
}

.btn-hero {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    margin-right: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary);
}
.navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Floating Elements */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 30%;
    right: 5%;
    animation-delay: 2s;
}

.floating-card-3 {
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards Section */
.cards-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.modern-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.modern-card img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 32px;
}
.modern-card img {
    width: 100%;
    height: 250px; /* Ajusta este valor según el diseño */
    object-fit: cover; /* Rellena el espacio cortando un poco si es necesario */
    display: block;
    border-top-left-radius: 10px; /* Si quieres bordes redondeados */
    border-top-right-radius: 10px;
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background: var(--gradient);
    position: relative;
}

.services-section::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"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.section-title {
    color: white;
    font-weight: 800;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: white;
    color: var(--primary);
    transform: scale(1.1) rotateY(360deg);
}

.service-title {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* Color general de texto en la sección de beneficios */
.benefits-section {
color: #64748b;
}

/* Títulos en un color más oscuro para resaltar */
.benefits-section .card-title {
color: #1e293b; /* azul oscuro */
font-weight: 600;
}

/* Íconos de check */
.benefits-section .check-icon {
color: #22c55e; /* verde */
margin-right: 8px;
}

/* Ajustes estéticos de las tarjetas */
.benefit-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
}

.benefit-card img {
width: 100%;
height: 200px;
object-fit: cover;
}

.benefit-content {
padding: 20px;
}

.check-item {
display: flex;
align-items: flex-start;
margin-bottom: 10px;
}

.check-item span {
flex: 1;
}

/* Functions Section */
.functions-section {
    padding: 120px 0;
    background: white;
}

.function-card {
    background: var(--gradient);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    color: white;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.function-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.4s ease;
    opacity: 0;
}

.function-card:hover::before {
    opacity: 1;
}

.function-card:hover {
    transform: translateY(-10px);
}

.function-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.function-card:hover .function-icon {
    opacity: 1;
    transform: scale(1.1);
}

.function-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Vision Section */
.vision-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
}

.vision-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Benefits Section */
.benefits-section {
    padding: 120px 0;
    background: #f8fafc;
}

.benefit-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    height: 100%;
}

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

.benefit-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}



.benefit-content {
    padding: 32px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.check-icon {
    color: var(--accent);
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-slogan {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}