/* Variables y Configuraci¨Žn Base */
:root {
    --primary: #E63946;
    /* Rojo Amor Pasi¨Žn */
    --primary-hover: #D62828;
    --secondary: #00103e;
    /* Azul Marino ADN de Amor */
    --accent-green: #00A651;
    --text-dark: #2C3E50;
    --text-light: #596A7A;
    --bg-light: #F7F9FC;
    --white: #FFFFFF;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --organic-1: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --organic-2: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --organic-3: 50% 50% 20% 80% / 25% 80% 20% 75%;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.text-white h2,
.text-white p {
    color: var(--white);
}

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

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

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

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-800 {
    max-width: 800px;
}

.justify-center {
    justify-content: center;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 112, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
}

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

/* Navbar */
.navbar {
    background: var(--white);
    padding: 0.3rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* logo del banner navbar */
.logo img {
    height: 75px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 600;
    font-family: var(--font-heading);
}

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

.nav-links .btn {
    color: var(--white);
}

.nav-links .btn:hover {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: 0.3s;
}

.dropdown:hover .dropbtn {
    color: var(--primary);
}

.nav-links > a:not(.btn) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0 !important;
}

.nav-icon {
    font-size: 1.5rem !important;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--secondary);
    transition: 0.3s;
}

.nav-links > a:not(.btn):hover .nav-icon,
.dropdown:hover .dropbtn .nav-icon {
    -webkit-text-stroke-color: var(--primary);
}

.nav-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    font-size: 0.75rem !important;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0, 16, 62, 0.1);
    border-radius: 12px;
    z-index: 1000;
    top: 100%;
    left: 0;
    overflow: hidden;
    animation: fadeIn 0.3s ease forwards;
    border: 1px solid #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 14px 24px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #fafafa;
    color: var(--primary);
    padding-left: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    max-height: 800px;
    margin-top: 85px;
    overflow: hidden;
}

.carousel {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 74, 139, 0.5) 0%, rgba(0, 74, 139, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.4s forwards;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

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

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Cards (World Vision organic style) */
.organic-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--organic-1);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border-top: 5px solid;
}

.organic-card:hover {
    transform: translateY(-10px);
    border-radius: var(--organic-2);
}

.card-blue {
    border-color: var(--secondary);
}

.card-orange {
    border-color: var(--primary);
}

.card-green {
    border-color: var(--accent-green);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-blue .card-icon {
    color: var(--secondary);
}

.card-orange .card-icon {
    color: var(--primary);
}

.card-green .card-icon {
    color: var(--accent-green);
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-image,
.split-content {
    flex: 1;
}

.organic-img img {
    border-radius: var(--organic-2);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
    height: 500px;
}

.organic-img-2 img {
    border-radius: var(--organic-3);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
    height: 500px;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: 0.3s;
}

.stat-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Footer Custom */
.footer {
    background: linear-gradient(90deg, #E63946 0%, #00103e 100%);
    color: var(--white);
    padding: 2.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 1.5rem;
}

.footer-col-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-white {
    height: 95px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.social-icons-left,
.social-icons-center {
    display: flex;
    gap: 0.8rem;
}

.social-icons-left a,
.social-icons-center a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons-left a:hover,
.social-icons-center a:hover {
    transform: scale(1.1);
}

.footer-col-2 h3,
.footer-col-3 h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--white);
}

.footer-col-2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-2 li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-col-2 li i {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.footer-col-4 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-slogan {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    line-height: 1.2;
    text-align: right;
    margin: 0;
    color: #FFFFFF;
    white-space: nowrap;
}

.footer-divider {
    width: 1px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-divider {
        display: none;
    }

    .footer-col-2 li {
        justify-content: center;
    }

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

    .footer-col-4 {
        flex-direction: column;
    }
}

/* Forms & Cards */
.modern-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 16, 62, 0.08);
    border: 1px solid #f0f0f0;
}

.modern-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #EAEAEA;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    background: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(234, 90, 0, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-block i {
    margin-left: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active {
        display: flex;
    }

    /* Mobile Dropdown adjustments */
    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f9f9f9;
        font-weight: 600;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #fafafa;
        display: none;
        border: none;
        margin-top: 0;
    }

    .dropdown-content a {
        padding: 12px 30px;
        font-size: 0.95rem;
        border-left: 3px solid transparent;
    }

    .dropdown-content a:hover {
        border-left: 3px solid var(--primary);
        background: #f0f0f0;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Layout Adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .split-layout {
        gap: 2rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Hero & Titles Adjustments */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .page-hero {
        padding: 4rem 1rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Images */
    .organic-img img,
    .organic-img-2 img {
        height: 250px;
    }

    /* Cards & Forms */
    .modern-card {
        padding: 2rem 1.5rem;
    }
}

/* Preloader Premium */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s, transform 0.8s;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUpLoader 1s ease-out forwards;
}

.loader-logo {
    width: 240px;
    max-width: 80vw;
    animation: gentleFloat 3s ease-in-out infinite;
}

.loader-bar-container {
    width: 220px;
    height: 4px;
    background: rgba(0, 16, 62, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 4px;
    /* Duraci¨Žn de 5s para sincronizar con el timeout de main.js */
    animation: loadProgress 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-light);
    letter-spacing: 1px;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    20% {
        width: 30%;
    }

    50% {
        width: 60%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeInUpLoader {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    /* Efecto cinem¨˘tico al salir */
}