/* ---------------------------------------------------------- */
/*             VARIABLES DE COLOR (PALETA MINDFUL)            */
/* ---------------------------------------------------------- */

:root {
    --verde-oscuro: #1b4332;
    --verde-medio: #2d6a4f;
    --verde-claro: #b7e4c7;
    --verde-agua: #d8f3dc;
    --blanco: #ffffff;
}

/* ---------------------------------------------------------- */
/*                      TIPOGRAFÍA Y BASE                     */
/* ---------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #f7f8f5;
    color: #2b2b2b;
    line-height: 1.7;
}

/* ---------------------------------------------------------- */
/*                      HEADER + LOGO                         */
/* ---------------------------------------------------------- */

header {
    background: linear-gradient(180deg, var(--verde-claro), var(--verde-agua));
    padding: 40px 20px 25px;
    text-align: center;
}

header img {
    max-width: 160px;
    margin: 0 auto 15px auto;
    display: block;
    opacity: 0.95;
}

header h1 {
    margin: 10px 0 5px 0;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--verde-oscuro);
}

header p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--verde-medio);
}

/* ---------------------------------------------------------- */
/*                           NAV                              */
/* ---------------------------------------------------------- */

nav {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 15px 0;
    background-color: var(--verde-agua);
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--verde-oscuro);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--verde-oscuro);
    border-radius: 5px;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #0f3c28;
}

/* Sticky nav (opcional, si no lo quieres comenta estas 3 líneas) */
nav {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ---------------------------------------------------------- */
/*                          SECCIONES                         */
/* ---------------------------------------------------------- */

section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 25px;
}

h2 {
    font-size: 1.9rem;
    color: var(--verde-oscuro);
    margin-bottom: 15px;
    position: relative;
}

/* Línea suave debajo de h2 */
h2::after {
    content:"";
    position: absolute;
    left: 50%; bottom: -6px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: #95d5b2;
    opacity: .6;
}

/* ---------------------------------------------------------- */
/*                      TARJETAS (CARDS)                      */
/* ---------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: var(--blanco);
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 15px #00000015;
    transition: transform 0.25s, box-shadow 0.25s;
    min-height: 180px;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 24px #00000030;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--verde-medio);
}

/* ---------------------------------------------------------- */
/*                  IMÁGENES EN TARJETAS/PÁGINAS              */
/* ---------------------------------------------------------- */

.card-img {
    width: 100%;
    max-width: 580px;
    margin: 25px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 16px #00000025;
}

/* ---------------------------------------------------------- */
/*                        ICONOS REDONDOS                     */
/* ---------------------------------------------------------- */

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--verde-agua);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px auto;
    color: var(--verde-oscuro);
}

/* ---------------------------------------------------------- */
/*                           CTA BUTTON                       */
/* ---------------------------------------------------------- */

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 26px;
    background: var(--verde-oscuro);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-button:hover {
    background: var(--verde-medio);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------- */
/*                          HERO                              */
/* ---------------------------------------------------------- */

.hero {
    background: linear-gradient(180deg, var(--verde-claro), var(--verde-agua));
    text-align: center;
    padding: 60px 20px 40px;
    animation: fadeHero 1.4s ease both;
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--verde-oscuro);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--verde-medio);
    margin: 0;
}

@keyframes fadeHero {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------- */
/*                     ANIMACIONES SUAVES                     */
/* ---------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in.delay-1 { animation-delay: .2s; }
.fade-in.delay-2 { animation-delay: .4s; }
.fade-in.delay-3 { animation-delay: .6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPIRACIÓN ANIMADA */
.breathe {
    animation: breatheAnim 6s ease-in-out infinite;
}

@keyframes breatheAnim {
    0% { transform: scale(0.97); }
    50% { transform: scale(1.03); }
    100% { transform: scale(0.97); }
}

/* ---------------------------------------------------------- */
/*                          FOOTER                            */
/* ---------------------------------------------------------- */

footer {
    background-color: var(--verde-agua);
    padding: 25px;
    text-align: center;
    margin-top: 50px;
    font-size: 0.95rem;
    color: var(--verde-medio);
}

/* ---------------------------------------------------------- */
/*                      RESPONSIVE                            */
/* ---------------------------------------------------------- */

@media (max-width: 600px) {
    header h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    nav { gap: 18px; }
    .card { padding: 18px; }
}





