/* Base Styles */
:root {
    --primary-color: rgb(10, 38, 69); /* Updated primary blue color */
    --secondary-color: #0e3158; /* Dark navy blue from reference site */
    --accent-color: #dbeafe; /* Blue-100 from reference site */
    --accent-light: #eff6ff; /* Blue-50 from reference site */
    --background-light: #f5f2e8; /* Light beige from reference site */
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --gray-border: #E5E7EB;
    --blue-600: #2563eb; /* Button highlight color */
    --radius: 0.5rem;
    --font-primary: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    padding: 0 1rem;
    flex: 1;
}

/* Header */
header {
    background-color: var(--white);    
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none; /* Inicialmente oculto */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

/* Overlay para el menú móvil */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-menu.active::before {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-menu ul li a.btn.btn-primary {
    color: var(--white) !important;
    text-align: center;
    padding: 10px;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: var(--secondary-color);
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-primary);
}

/* Header button */
.header-container .btn {
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--accent-light);
}

/* Hero Section */
.hero {
    background-color: rgb(243, 238, 226);
    color: var(--primary-color);
    padding: 4rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

/* Crear el borde inferior desde donde "emerge" la mano */
/*.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--primary-color);    
    z-index: 1;
}
*/
.hero-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--primary-color);
    opacity: 0.9;
    position: relative;
    display: block;
    border-top: 1px solid rgba(10, 38, 69, 0.2);
    padding-top: 0.75rem;
    margin-top: -0.5rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-buttons {
    display: flex;
    margin-top: 2rem;
    gap: 1rem;
}

.hero-btn {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 220px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hero-btn.btn-primary {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 78%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    /* Eliminamos el empuje para que se centre verticalmente */
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-bg-light {
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgb(245, 242, 232);
    color: rgb(14 49 88);
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--font-primary);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-primary);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Tamaño específico para textarea en formulario home */
#home-message {
    min-height: 80px;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-border);
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
    margin-top: -20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-border);
    font-size: 0.9rem;
    color: var(--text-light);
}
.card.bg-light.p-4 {
    box-shadow: none;
    background-color: white;
}
p.mb-0 {
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    header a.btn.btn-primary {
        display: none;
    }
    .header-container {
        padding: 0.75rem 2rem;
    }

    nav {
        display: none;
    }

    .mobile-menu-button {
        display: block !important;
        margin-left: auto;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        padding: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-image {
        padding: 0;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
        max-width: 100%;
        padding: 0.75rem 1rem 0;
    }
    
    .hero-image img {
        max-width: 85%;
        margin-bottom: -80px;
    }

    .row {
        flex-direction: column;
    }

    .col {
        margin-bottom: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Efectos */
@keyframes highlight {
    0% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    }
    100% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

.highlight-element {
    animation: highlight 1.5s ease-in-out;
}

/* Partner Carousel */
.partner-carousel {
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.partner-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: calc(200% + 2rem);
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 10px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    min-width: 150px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover img {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-track:hover {
    animation-play-state: paused;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

.text-primary {
    color: var(--primary-color);
}

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

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

.bg-blue {
    background-color: var(--primary-color);
    color: var(--white);
}

.rounded {
    border-radius: var(--radius);
}

.p-3 {
    padding: 1.5rem;
}