/*
Theme Name: Nutriologa Daniela Estrada
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: Tema personalizado para Nutrióloga Daniela Estrada.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: health, nutrition, custom
Text Domain: daniela-estrada
*/

/* 
   Theme: Functional Nutrition (Organic, Premium, Clean)
   Colors: Sage Green, Soft Beige, Charcoal, White
*/

:root {
  /* Colors */
  --primary: #5d7a68; /* Sage Green */
  --primary-dark: #4a6153;
  --secondary: #f2f0e9; /* Soft Beige/Bone */
  --accent: #d4a373; /* Warm Earth tone */
  --text-main: #2c3330; /* Charcoal */
  --text-light: #6b7280;
  --white: #ffffff;
  --background: #fafaf9;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --container-padding: 2rem;
  --section-spacing: 5rem;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-long: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Utility Classes for Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-long);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 100ms;
}
.stagger-2 {
  transition-delay: 200ms;
}
.stagger-3 {
  transition-delay: 300ms;
}
.stagger-4 {
  transition-delay: 400ms;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-spacing) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(93, 122, 104, 0.2);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(93, 122, 104, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(93, 122, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(93, 122, 104, 0);
  }
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.subtitle {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dot {
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1001;
  transition: var(--transition);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.close-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.25rem;
  text-align: center;
}

/* Hero Section */
.hero {
  padding-top: 140px; /* Navbar height + spacing */
  padding-bottom: 4rem;
  background-color: var(--secondary);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(93, 122, 104, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.feature-list i {
  color: var(--primary);
  width: 20px;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--background);
  padding: 2.5rem;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(93, 122, 104, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card.featured {
  background-color: var(--primary);
  color: var(--white);
}

.service-card.featured .subtitle,
.service-card.featured p,
.service-card.featured .card-icon,
.service-card.featured .link-arrow {
  color: var(--white);
}

.service-card.featured .service-features li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card.featured .card-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-features {
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  transition: var(--transition);
}

.link-arrow:hover {
  gap: 0.75rem;
}

/* Location Section */
.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.map-wrapper {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background-color: var(--text-main);
  color: var(--white);
  padding: 4rem 0 1rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo-footer {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-container,
  .about-container,
  .location-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-img,
  .about-img {
    height: 400px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .contact-item {
    justify-content: center;
    text-align: left;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
