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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #343a40;
    background-color: #FFFDE7; /* Фон светло-бежевый */
    text-align: center; /* Текст центрирован */
}

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

a {
    text-decoration: none;
    color: #FF9800; /* Оранжевый для ссылок */
    transition: color 0.3s ease;
}

a:hover {
    color: #F57C00; /* Темный оранжевый при наведении */
}

/* Encabezado */
header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    color: #FF9800; /* Оранжевый для заголовка */
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    font-weight: 600;
    color: #343a40;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #F57C00; /* Темный оранжевый при наведении */
}

/* Sección Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)) no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 180px 0;
}

.hero h2 {
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
}

/* Hero для каждой страницы */
.hero.home {
    background-image: url('images/home-hero.jpg');
}

.hero.diet {
    background-image: url('images/diet-hero.jpg');
}

.hero.lifestyle {
    background-image: url('images/lifestyle-hero.jpg');
}

.hero.health-knowledge {
    background-image: url('images/health-knowledge-hero.jpg');
}

.hero.diabetes-support {
    background-image: url('images/diabetes-support-hero.jpg');
}

.hero.contact {
    background-image: url('images/contact-hero.jpg');
}

.hero.about {
    background-image: url('images/about-hero.jpg');
}

.hero.faq {
    background-image: url('images/faq-hero.jpg');
}

.hero.privacy-policy {
    background-image: url('images/privacy-policy-hero.jpg');
}

.hero.terms-of-use {
    background-image: url('images/terms-of-use-hero.jpg');
}

.hero.thank-you-hero {
    background-image: url('images/thank-you-hero.jpg');
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    background-color: #FF9800; /* Оранжевый */
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #F57C00; /* Темный оранжевый при наведении */
    transform: scale(1.05); /* Эффект масштабирования */
}

.cta-button.center-button {
    display: block;
    margin: 20px auto 0; /* Центрирование кнопки */
}

/* Sección de citas */
.quote {
    background-color: #FFF9C4; /* Светло-желтый фон */
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
}

.quote blockquote {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-style: italic;
    color: #343a40;
    margin: 0;
}

/* Grid de características */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    padding: 20px;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    color: #FF9800; /* Оранжевый для заголовков карточек */
    margin: 0 0 10px;
}

.feature-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Grid de recetas */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.recipe-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    display: flex; /* Flexbox для алиментации элементов вертикально */
    flex-direction: column; /* Вертикальное направление */
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.recipe-content {
    flex: 1; /* Расширение содержимого для заполнения доступного пространства */
    padding: 20px;
}

.recipe-content h3 {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    color: #FF9800; /* Оранжевый для заголовков рецептов */
    margin: 0 0 10px;
}

.recipe-content p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.details-button {
    display: block; /* Кнопка в блоке */
    margin-top: auto; /* Выравнивание вниз */
    background-color: #FF9800; /* Оранжевый */
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.details-button:hover {
    background-color: #F57C00; /* Темный оранжевый при наведении */
}

/* Sección de formularios */
.contact-form,
.subscribe-section {
    background-color: #FFF9C4; /* Светло-желтый фон */
    padding: 60px 0;
    margin-top: 60px;
    text-align: center; /* Текст центрирован */
}

.contact-form .container,
.subscribe-section .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form h3,
.subscribe-section h3 {
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    color: #FF9800; /* Оранжевый для заголовков форм */
    margin-bottom: 20px;
}

.contact-form p,
.subscribe-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.form-group {
    width: 100%;
    max-width: 400px;
    margin: 0 auto; /* Центрирование полей формы */
    margin-bottom: 20px;
}

.form-group label {
    font-size: 18px;
    color: #343a40;
    margin-bottom: 10px;
    display: block;
    text-align: left; /* Текст внутри формы слева */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #FF9800; /* Оранжевый бордер */
    border-radius: 10px; /* Округленные углы */
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #F57C00; /* Темный оранжевый при фокусе */
    box-shadow: 0 0 10px rgba(245, 124, 0, 0.5); /* Стендалинг эффект при фокусе */
    outline: none;
}

/* Sección контента для информационных статей */
.content-section {
    padding: 60px 0;
    background-color: #ffffff;
    margin-top: 60px;
    text-align: left; /* Текст слева */
}

.content-section h2 {
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    color: #FF9800; /* Оранжевый для заголовков разделов */
    margin-bottom: 20px;
}

.content-section h3 {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    color: #343a40; /* Темно-серый для подзаголовков */
    margin-bottom: 15px;
}

.content-section p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify; /* Текст оправдан */
}

.content-section ul {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Sección контента для рецептов */
.full-recipe {
    padding: 60px 0;
    background-color: #ffffff;
    margin-top: 60px;
    text-align: left; /* Текст слева */
}

.full-recipe h2 {
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    color: #FF9800; /* Оранжевый для заголовков рецептов */
    margin-bottom: 20px;
}

.full-recipe img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
    margin-bottom: 20px;
}

.full-recipe ul,
.full-recipe ol {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 20px;
}

.full-recipe li {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Стилизация футера */
footer {
    background-color: #FF9800; /* Оранжевый фон */
    color: #ffffff;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

footer a {
    color: #FFF9C4; /* Светло-желтый для ссылок в футере */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff; /* Белый при наведении */
}

/* Отзывчивый дизайн */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .hero {
        padding: 120px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

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

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

    .recipe-card img {
        height: 200px;
    }

    .button-container {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button,
    .details-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}