/* ==========================================================================
   SISTEMA DE DISEÑO Y CONFIGURACIÓN GENERAL (VANILLA CSS PREMIUM)
   ========================================================================== */

:root {
    /* Paleta de Colores Principal */
    --primary: #1C3D2B;
    --primary-light: #4A6B56;
    --primary-xlight: #EBF1ED;
    --primary-rgb: 28, 61, 43;
    
    --secondary: #E89C7C;
    --secondary-dark: #D9886C;
    --secondary-light: #F8E5D6;
    
    --accent: #E0B86F;
    --accent-hover: #C5A05B;
    
    /* Neutros e Interfaces */
    --text-dark: #2B2B2B;
    --text-light: #6A6A6A;
    --bg-light: #FAFAF8;
    --bg-white: #FFFFFF;
    --bg-dark: #121F17;
    
    /* Sombras y Efectos */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Bordes y Transiciones */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reseteo General */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Cpath d='M6 58c0 0 20-6 46-42 0 0 4 8-8 20C38 48 18 56 18 56s-6 2-12 2z' fill='%23ff8c00'/%3E%3Cpath d='M34 6c0 0 0-6 4-6s8 6 6 10c0 0-4-2-6 0s-4-4-4-4z' fill='%23006100'/%3E%3C/svg%3E") 16 0, auto;
}

/* Tipografía Avanzada */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   COMPONENTES Y UTILIDADES COMUNES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Botones Premium */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--secondary-light);
    color: var(--primary);
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
    text-decoration: none;
    text-align: center;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
}


/* Etiquetas y Subtítulos */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--primary-xlight);
    color: var(--primary-light);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    display: block;
    color: var(--secondary-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

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

.section-title.text-light {
    color: var(--bg-white);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

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

/* Grid General */
.w-100 { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* ==========================================================================
   CABECERA Y NAVBAR DE NAVEGACIÓN
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
    display: flex;
    flex-direction: column;
}

.logo-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-dark);
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link i {
    margin-right: 0.3rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-fast);
}

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

.nav-btn-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   SECCIÓN HERO / BIENVENIDA
   ========================================================================== */

.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #FBF8F6 0%, #EBF1ED 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Contenedor Visual de Hero */
.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--bg-white);
}

/* Tarjetas Flotantes Glassmorphic */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    animation: floatingEffect 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 15%;
    left: -10%;
}

.floating-card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.5rem;
    background-color: var(--bg-white);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
}

.text-success { color: var(--primary-light); }
.text-danger { color: var(--secondary-dark); }

.card-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.card-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Divisor de curvas SVG */
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.section-divider .shape-fill {
    fill: var(--bg-light);
}

/* ==========================================================================
   SECCIÓN SOBRE MÍ
   ========================================================================== */

.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-visual {
    position: relative;
    width: 100%;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-img {
    width: 100%;
    max-height: 480px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--bg-white);
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.about-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 2;
}

.about-badge i {
    color: var(--secondary-dark);
}

.about-badge span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.about-content {
    text-align: left;
}

.about-bio {
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.about-bio-2 {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-align: left;
}

.credential-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.credential-item i {
    font-size: 1.2rem;
    color: var(--secondary-dark);
    background-color: var(--secondary-light);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

.cred-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.cred-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.about-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */

.services-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(28, 61, 43, 0.1);
}

.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-xlight);
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
}

.service-name {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* ==========================================================================
   SECCIÓN DE HERRAMIENTAS INTERACTIVAS
   ========================================================================== */

.tools-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-light);
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
}

.tab-btn i {
    opacity: 0.7;
}

.tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

.tab-btn.active {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.tools-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 480px;
}

.tool-content {
    display: none;
}

.tool-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.tool-inputs h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.tool-help {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

/* Campos de Formulario */
.input-group-row {
    display: flex;
    gap: 1.2rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.input-field label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 2.5rem;
}

input, select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
}

input:focus, select:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(74, 107, 86, 0.1);
}

.unit {
    position: absolute;
    right: 1.2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Resultados de las calculadoras */
.tool-results {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,0.08);
}

.result-placeholder {
    text-align: center;
    max-width: 280px;
}

.result-placeholder-icon {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.25;
    margin-bottom: 1.2rem;
}

.result-placeholder p {
    font-size: 0.9rem;
}

.result-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.4s ease;
}

/* Medidores visuales */
.bmi-score-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.bmi-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.bmi-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
}

.bmi-gauge {
    width: 100%;
    margin-bottom: 2rem;
}

.gauge-bar {
    height: 12px;
    background: linear-gradient(to right, #6EB5FF 0%, #8FE1A2 25%, #EED535 55%, #F48A6B 80%, #E25E5E 100%);
    border-radius: var(--radius-full);
    position: relative;
    margin-bottom: 0.8rem;
}

.gauge-marker {
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-sm);
    transition: left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.bmi-status-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.bmi-feedback {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Componentes del Requerimiento Calórico */
.calorie-score-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.calorie-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.calorie-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.macro-distribution {
    width: 100%;
    text-align: left;
    margin-bottom: 1.5rem;
}

.macro-distribution h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.macro-bars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.macro-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.macro-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.macro-progress {
    height: 8px;
    background-color: rgba(0,0,0,0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1s ease;
}

.fill-carbs { background-color: var(--primary-light); width: 45%; }
.fill-proteins { background-color: var(--secondary); width: 25%; }
.fill-fats { background-color: var(--accent); width: 30%; }

.calories-disclaimer {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.4;
}

.calories-disclaimer i {
    color: var(--secondary-dark);
    margin-right: 0.2rem;
}

/* ==========================================================================
   SECCIÓN EXPLORADOR DE RECETAS SALUDABLES
   ========================================================================== */

.recipes-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.recipe-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    background-color: var(--primary-xlight);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
}

.filter-btn.active {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.recipe-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(28, 61, 43, 0.08);
}

.recipe-image {
    position: relative;
    height: 200px;
}

.recipe-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background-color: var(--bg-white);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.recipe-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 4rem;
    transition: var(--transition-smooth);
}

.recipe-card:hover .recipe-img-placeholder {
    transform: scale(1.05);
}

.recipe-info {
    padding: 1.8rem;
}

.recipe-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.recipe-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.recipe-meta i {
    color: var(--primary-light);
    margin-right: 0.3rem;
}

/* ==========================================================================
   SECCIÓN TESTIMONIOS Y PACIENTES
   ========================================================================== */

.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    z-index: 1;
}

.testimonial-item.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02);
}

.rating {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--bg-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patient-name {
    font-size: 1.1rem;
}

.patient-goal {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Controles de Slider */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-arrow {
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.slider-dots {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* ==========================================================================
   SECCIÓN RESERVA DE CITAS (SIMULADOR DE BOOKING)
   ========================================================================== */

.booking-section {
    padding: 100px 0;
    background-color: var(--primary);
    color: var(--bg-white);
    position: relative;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.booking-text {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.booking-perks {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.perk-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.perk-item span {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.clinic-details {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.clinic-details i {
    color: var(--secondary);
    margin-right: 0.5rem;
    width: 20px;
}

/* Tarjeta del Formulario de Booking */
.booking-form-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.booking-form-header {
    margin-bottom: 2rem;
}

.booking-form-header h3 {
    font-size: 1.8rem;
}

.booking-form-header p {
    font-size: 0.9rem;
}

/* Vista de éxito del formulario */
.booking-success-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-badge {
    background-color: var(--primary-xlight);
    color: var(--primary-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.booking-success-view h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.success-desc {
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

.success-steps {
    text-align: left;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.success-steps p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.success-steps p i {
    font-size: 1.1rem;
}

.text-primary { color: var(--primary-light); }

/* ==========================================================================
   SECCIÓN PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   ========================================================================== */

.faq-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 1.5rem 2rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--secondary-dark);
    transition: transform 0.4s ease;
}

.faq-question:hover {
    color: var(--secondary-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 1.5rem;
}

/* Estado Activo del Acordeón */
.faq-item.active {
    border-color: rgba(28, 61, 43, 0.1);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 250px; /* Suficiente para el contenido */
    padding: 0 2rem;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    font-family: 'Outfit', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.footer-brand-desc {
    color: rgba(255,255,255,0.5);
    margin-top: 1.2rem;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-white);
}

.footer-logo i {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--bg-white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-grid h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.footer-hours span {
    font-weight: 600;
    color: var(--bg-white);
    display: block;
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.2rem;
}

.newsletter-form {
    display: flex;
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--bg-white);
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form button {
    background-color: var(--secondary);
    border: none;
    color: var(--bg-white);
    padding: 0 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--secondary-dark);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   MODAL DE DETALLE DE RECETA
   ========================================================================== */

.recipe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.recipe-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 31, 23, 0.6);
    backdrop-filter: blur(4px);
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
}

.modal-body {
    padding: 3rem;
}

.modal-recipe-header {
    margin-bottom: 2rem;
}

.modal-recipe-category {
    display: inline-block;
    color: var(--secondary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.modal-recipe-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.modal-recipe-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.modal-recipe-meta i {
    color: var(--primary-light);
}

.modal-recipe-details {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.modal-recipe-details h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-xlight);
    padding-bottom: 0.4rem;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ingredients-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.ingredients-list li i {
    color: var(--secondary);
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.steps-list li {
    font-size: 0.9rem;
    display: flex;
    gap: 0.8rem;
}

.step-num {
    background-color: var(--primary-xlight);
    color: var(--primary-light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-recipe-macros {
    grid-column: span 2;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.macro-item {
    display: flex;
    flex-direction: column;
}

.macro-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.macro-lbl {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */

@keyframes floatingEffect {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MOBILE FIRST & MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .about-container {
        gap: 3rem;
    }
    
    .tool-layout {
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    /* Navbar responsiva */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        border-top: 1px solid rgba(0,0,0,0.06);
        padding: 3rem 2rem;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
        display: block;
    }
    
    .nav-btn-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--primary);
        color: var(--bg-white);
        padding: 0.8rem 1.5rem;
        border-radius: var(--radius-full);
        font-weight: 500;
        text-align: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Adaptaciones de Layout a 1 columna */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .floating-card-1 {
        left: -5%;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .credentials {
        margin: 0 auto 2.5rem;
    }
    
    .about-actions {
        justify-content: center;
    }
    
    .tool-layout {
        grid-template-columns: 1fr;
    }
    
    .booking-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .booking-info {
        text-align: center;
    }
    
    .booking-perks {
        align-items: center;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .tools-container {
        padding: 1.5rem;
    }
    
    .input-group-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .recipe-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .testimonial-card {
        padding: 1.8rem;
    }
    
    .testimonial-text {
        font-size: 1.15rem;
    }
    
    .booking-form-card {
        padding: 1.8rem;
    }
    
    .modal-body {
        padding: 1.8rem;
    }
    
    .modal-recipe-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-recipe-macros {
        grid-column: 1;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


