:root {
    --color-verde-institucional: #288c44;
    --color-verde-whatsapp: #25D366;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #fcfcfc;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ================================
   1. NAVBAR STYLES
   ================================ */
.main-navbar {
    background-color: var(--color-verde-institucional);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: block;
}

.nav-logo img {
    max-height: 55px; 
    background-color: var(--white); 
    padding: 8px 12px; 
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================================
   2. HERO CAROUSEL (SWIPER)
   ================================ */
.hero-wrapper {
    width: 100%;
    background-color: #222;
    display: flex;
    justify-content: center;
}

.swiper-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.carousel-caption {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Hero Buttons */
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* ================================
   3. PILLARS GRID (FROM INDEX)
   ================================ */
.pillars-grid {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-verde-institucional);
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--color-verde-institucional);
    margin: 10px auto;
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-bottom: 5px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--color-verde-institucional);
}

.pillar-card i {
    font-size: 3rem;
    color: var(--color-verde-institucional);
    margin-bottom: 1.5rem;
}

.pillar-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ================================
   4. FLOATING ACTION BUTTONS
   ================================ */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1050;
    align-items: flex-end;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    overflow: hidden;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Botones Donar y Escríbenos (Blancos) */
.floating-btn.btn-white {
    background-color: var(--white);
    color: var(--color-verde-institucional);
    padding: 10px 20px;
    font-size: 0.95rem;
}

.floating-btn.btn-white i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* WhatsApp Icon */
.floating-btn.btn-wa {
    background-color: var(--color-verde-whatsapp);
    color: var(--white);
    width: 65px;
    height: 65px;
    font-size: 2rem;
    animation: softPulseWa 2s infinite;
}

@keyframes softPulseWa {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
