/*
Theme Name: AKG Medicina Alternativa
Theme URI: https://akgmedicinaalternativa.com
Author: APEX AI Operations
Description: Custom theme for AKG Medicina Alternativa — Spa & Wellness in Cabo San Lucas. Bilingual ES/EN.
Version: 1.0.0
Text Domain: akg-medicina
*/

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #5ECCC9;
  --secondary-color: #1A5144;
  --accent-color: #f8e3e0;
  --light-color: #f9f9f9;
  --dark-color: #333333;
  --text-color: #444444;
  --header-font: 'Playfair Display', serif;
  --body-font: 'Raleway', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}
h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1.5rem; }
a { color: var(--secondary-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; }

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: var(--body-font);
  font-size: 1rem;
}
.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.header.scrolled { padding: 10px 0; }
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.logo { display: flex; align-items: center; }
.logo h1 { font-size: 1.8rem; margin-bottom: 0; }
.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 30px; }
.nav-menu a { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.language-switch { display: flex; align-items: center; margin-left: 30px; }
.language-switch a { margin: 0 5px; opacity: 0.7; font-weight: 600; font-size: 0.9rem; }
.language-switch a.active { opacity: 1; color: var(--primary-color); }
.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/spa_candles.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { color: white; font-size: 4rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
.hero p { font-size: 1.5rem; margin-bottom: 30px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }

/* ===== ABOUT SECTION ===== */
.about { background-color: white; }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-image { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.about-image img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.about-image:hover img { transform: scale(1.05); }

/* ===== SERVICES SECTION ===== */
.services { background-color: var(--light-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.service-image { height: 200px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-image img { transform: scale(1.1); }
.service-content { padding: 25px; }
.service-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-content p { margin-bottom: 20px; }
.read-more { font-weight: 600; color: var(--primary-color); display: inline-flex; align-items: center; }
.read-more i { margin-left: 5px; transition: transform 0.3s ease; }
.read-more:hover i { transform: translateX(5px); }

/* ===== CTA SECTION ===== */
.cta { background-color: var(--primary-color); color: white; text-align: center; }
.cta h2 { color: white; }
.cta h3 { color: white; font-size: 2rem; margin-bottom: 1rem; }
.cta p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 2rem; }
.cta .btn { background-color: white; color: var(--primary-color); }
.cta .btn:hover { background-color: var(--secondary-color); color: white; }

/* ===== TESTIMONIALS SECTION ===== */
.testimonials { background-color: var(--primary-color); color: white; }
.testimonials .section-title h2 { color: white; }
.testimonials .section-title h2:after { background-color: white; }
.testimonials-slider { max-width: 800px; margin: 0 auto; display: grid; gap: 20px; }
.testimonial-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}
.testimonial-text { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; }
.testimonial-author { font-weight: 700; font-size: 1.1rem; }

/* ===== CONTACT SECTION ===== */
.contact { background-color: white; }
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.contact-info { display: flex; flex-direction: column; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.contact-icon { font-size: 1.5rem; color: var(--primary-color); margin-right: 15px; min-width: 30px; }
.contact-details h3 { font-size: 1.2rem; margin-bottom: 5px; }
.contact-form {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 1rem;
}
textarea.form-control { height: 150px; resize: vertical; }
.form-message { padding: 10px 15px; border-radius: 4px; margin-top: 15px; }
.form-message.success { background-color: rgba(94, 204, 201, 0.2); color: var(--secondary-color); }
.form-message.error { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 30px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.footer-logo { margin-bottom: 20px; }
.site-footer h4 { color: white; margin-bottom: 20px; font-size: 1.3rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: white; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}
.social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== WP OVERRIDES ===== */
.wp-block-post-content { max-width: 100%; padding: 0; }
body.page .entry-content { max-width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .hero h1 { font-size: 3.5rem; }
  .about-content { flex-direction: column; }
  .about-image { order: -1; margin-bottom: 30px; }
}
@media (max-width: 768px) {
  .header-container { padding: 15px 0; }
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
  }
  .nav-menu.active { left: 0; }
  .nav-menu li { margin: 15px 0; }
  .language-switch { margin-left: 15px; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.2rem; }
  .section { padding: 60px 0; }
}
@media (max-width: 576px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.2rem; }
  .btn { padding: 10px 20px; }
  .logo h1 { font-size: 1.5rem; }
}
