:root {
    --primary-color: #4141A1;
    --primary-color-rgb: 65, 65, 161;
    --secondary-color: #9B9BCD;
    --dark-blue: #2d2d7a;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--white);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4141A1 !important;
    color: #ffffff !important;
    border: 2px solid #4141A1 !important;
    box-shadow: 0 4px 15px rgba(65, 65, 161, 0.3);
}

.btn-primary:hover {
    background-color: #2d2d7a !important;
    border-color: #2d2d7a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 65, 161, 0.4);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, #f5f5ff 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content .tagline {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--dark-blue);
}

.hero-content .subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-secondary {
    background: #ffffff !important;
    color: #4141A1 !important;
    border: 2px solid #4141A1 !important;
    padding: 12px 25px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(65, 65, 161, 0.15);
}

.btn-secondary:hover {
    background-color: #4141A1 !important;
    color: #ffffff !important;
    border-color: #4141A1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 65, 161, 0.3);
}

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

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slide-in 1s ease-out forwards;
    opacity: 0;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card .icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card .icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card .text strong {
    font-weight: 700;
    color: var(--dark-blue);
}

.floating-card .text span {
    font-size: 14px;
    color: #555;
}

/* Footer Section */
.main-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 1023px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #4141A1, #9B9BCD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4141A1;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

/* Dropdown Menu Styles */
.main-nav .dropdown {
    position: relative;
    display: inline-block;
}

.main-nav .dropdown:hover .dropdown-content {
    display: flex;
}

.main-nav .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 450px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 20px;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.dropdown-column h6 {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: #f5f5ff;
    color: var(--primary-color);
}

/* --- Estilos del Menú Móvil --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--light-gray);
    transition: color 0.3s ease;
}

.mobile-nav ul li:last-child a {
    border-bottom: none;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Estilos para el Acordeón del Menú Móvil --- */
.mobile-dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-dropdown.is-open > .mobile-dropbtn .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.mobile-dropdown.is-open > .mobile-dropdown-content {
    max-height: 500px; /* Valor suficientemente grande para mostrar todos los ítems */
    transition: max-height 0.4s ease-in;
}

.mobile-dropdown-heading {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding-top: 0;
    padding-bottom: 0;
    transition: padding 0.4s ease;
}

.mobile-dropdown.is-open .mobile-dropdown-heading {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Anular el borde inferior para los encabezados */
.mobile-dropdown-content .mobile-dropdown-heading a {
    border-bottom: none;
}


/* --- Mejoras para Responsividad --- */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 20px;
    }
    .hero .container {
        gap: 30px;
    }
    .hero-content h1 {
        font-size: 44px;
    }
    .dropdown-content {
        min-width: 400px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-nav, .header-cta {
        display: none; /* Ocultar navegación y CTA en móviles */
    }

    .hamburger-menu {
        display: block; /* Mostrar botón de hamburguesa */
    }

    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr; /* Apilar las columnas */
        gap: 40px;
    }
    
    .hero-image {
        order: -1; /* Mover imagen arriba del texto */
        margin: 0 auto;
        max-width: 80%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .hero-cta {
        justify-content: center; /* Centrar botones */
    }

    .floating-card {
        display: none; /* Ocultar tarjeta flotante en móvil para simplicidad */
    }
}

