/* =============================================
   NUTRITIME - CSS fiel al diseño de nutritime.es
   ============================================= */

:root {
    --primary-green: #5a8a2e;
    --accent-red: #d42b36;
    --text-dark: #555555;
    --text-bold: #333333;
    --bg-page: #eef0ee;
    --bg-section-alt: #e8ebe8;
    --border-light: #d8ddd8;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-page);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Dotted grid pattern used throughout the page */
.dotted-bg {
    background-image: radial-gradient(circle, #b0bdb0 1px, transparent 1px);
    background-size: 22px 22px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 12px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo img {
    height: 55px;
    display: block;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; /* offset for fixed navbar */
    position: relative;
    background-color: var(--bg-page);
    overflow: hidden;
}

/* Dotted pattern in the hero background (center area) */
.hero::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background-image: radial-gradient(circle, #b0bdb0 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* Bottom-left dotted pattern */
.hero::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 30px;
    width: 180px;
    height: 180px;
    background-image: radial-gradient(circle, #b0bdb0 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding: 80px 5% 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 60%;
}

/* Red accent bar above the h1 */
.hero-accent-bar {
    width: 45px;
    height: 4px;
    background-color: var(--accent-red);
    margin-bottom: 24px;
    border-radius: 2px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 28px;
    color: var(--text-bold);
}

.hero-text {
    font-size: 1rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    max-width: 520px;
}

.hero-text p {
    margin-bottom: 14px;
}

/* The big red block on the right side */
.hero-red-block {
    position: absolute;
    right: 0;
    top: 80px;
    bottom: 0;
    width: 38%;
    background-color: var(--accent-red);
    z-index: 1;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-red {
    display: inline-block;
    padding: 16px 38px;
    background-color: var(--accent-red);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.25s, transform 0.2s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-red:hover {
    background-color: #b5222c;
    transform: translateY(-2px);
}

.btn-green {
    display: inline-block;
    padding: 16px 38px;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.25s, transform 0.2s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-green:hover {
    background-color: #3d6620;
    transform: translateY(-2px);
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
.section {
    padding: 90px 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section title - green with red underline bar */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary-green);
    margin-bottom: 14px;
}

.red-divider {
    display: block;
    width: 55px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 0 auto 50px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 1rem;
    color: var(--text-dark);
}

/* =============================================
   ¿QUÉ VAS A CONSEGUIR? SECTION
   ============================================= */
.features-section {
    background-color: var(--bg-page);
    position: relative;
}

/* Dotted patterns right and bottom right */
.features-section::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(circle, #b0bdb0 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.6;
    pointer-events: none;
}

.features-list {
    list-style: none;
    max-width: 720px;
    margin: 0 auto 40px;
}

.features-list li {
    font-size: 1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
}

.features-list li::before {
    content: '✔';
    color: var(--primary-green);
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.features-closing {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-bold);
    font-weight: 600;
    margin-top: 20px;
}

/* =============================================
   MÉTODO SECTION (light alt bg)
   ============================================= */
.method-section {
    background-color: var(--bg-section-alt);
}

.method-text {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    font-size: 1rem;
}

.method-text p {
    margin-bottom: 16px;
}

/* =============================================
   STATS / NUMBERS
   ============================================= */
.stats-section {
    background-color: var(--bg-page);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-bold);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

/* =============================================
   MISSION & PROMISE CARDS
   ============================================= */
.mission-section {
    background-color: var(--bg-page);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.mission-card {
    background-color: white;
    border-radius: 8px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 2px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-6px);
}

.mission-card i {
    font-size: 2.4rem;
    color: var(--primary-green);
    margin-bottom: 18px;
    display: block;
}

.mission-card h3 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 14px;
}

.mission-card p {
    font-size: 0.97rem;
    color: var(--text-dark);
}

/* =============================================
   BIO / RUTH ABREU SECTION
   ============================================= */
.bio-section {
    background-color: var(--bg-page);
    padding: 80px 0;
}

.bio-inner {
    display: flex;
    align-items: center;
    gap: 70px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.bio-image-wrap {
    flex: 0 0 340px;
    position: relative;
}

/* Dotted pattern behind photo */
.bio-image-wrap::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 200px;
    background-image: radial-gradient(circle, #b0bdb0 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.7;
    z-index: 0;
}

.bio-image-wrap img {
    width: 100%;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    display: block;
}

.bio-text h2 {
    font-size: 1.9rem;
    color: var(--primary-green);
    margin-bottom: 18px;
}

.bio-text p {
    font-size: 0.97rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.bio-text .btn-red {
    margin-top: 20px;
}

/* =============================================
   WHERE / DÓNDE
   ============================================= */
.where-section {
    background-color: var(--bg-section-alt);
    text-align: center;
}

.where-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1rem;
}

/* =============================================
   CONTACT FORM SECTION
   ============================================= */
.contact-section {
    background-color: var(--bg-page);
    position: relative;
}

/* Dotted pattern right side */
.contact-section::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 60px;
    width: 140px;
    height: 140px;
    background-image: radial-gradient(circle, #b0bdb0 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.contact-form-wrap {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.contact-form-wrap input,
.contact-form-wrap textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d8ddd8;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fafafa;
    margin-bottom: 14px;
    transition: border-color 0.2s;
    display: block;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: white;
}

.contact-form-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrap .btn-green {
    width: 100%;
    text-align: center;
    border-radius: 5px;
    font-size: 1rem;
    padding: 16px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: #d6dbd6;
    padding: 40px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 8px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

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

.social-icons a:hover {
    background-color: var(--accent-red);
}

.footer-logo img {
    height: 50px;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 44px 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: translateY(-40px);
    transition: transform 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-header h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-bold);
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-red-block {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 280px;
    }

    .hero-content {
        max-width: 100%;
        padding: 100px 24px 50px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

    .bio-inner {
        flex-direction: column;
        gap: 40px;
    }

    .bio-image-wrap {
        flex: none;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

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

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

    .hero h1 {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
