/* =========================================================================
   Jardín Verbena - Stylesheet
   ========================================================================= */

:root {
  /* Colors */
  --color-green-deep: #3d5a3e;
  --color-green-soft: #6b8f6b;
  --color-lavender: #9b7db8;
  --color-lavender-light: #e6e1ee;
  --color-cream: #faf7f2;
  --color-warm-gray: #4a4a4b;
  --color-text: #2a2a2a;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Layout */
  --navbar-height: 80px;
  --section-padding: clamp(4rem, 8vw, 6rem);
  --container-width: 1200px;

  /* Animations */
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-green-deep);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) var(--transition-ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding) 0;
}

.bg-light {
  background-color: var(--color-cream);
}

.bg-accent {
  background-color: var(--color-green-deep);
}

.text-white h2,
.text-white p {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

/* =========================================================================
   Buttons & Links
   ========================================================================= */

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-green-deep);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-green-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 90, 62, 0.2);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-green-deep);
}

.btn-white:hover {
  background-color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border-color: var(--color-green-deep);
  color: var(--color-green-deep);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-green-deep);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-green-deep);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* =========================================================================
   Navigation
   ========================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all var(--transition-speed) var(--transition-ease);
  background: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
  /* subtle softening */
  transition: transform var(--transition-speed);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-links a:not(.btn) {
  color: var(--color-text);
  text-shadow: none;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-green-soft);
  transition: width var(--transition-speed) var(--transition-ease);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--color-white);
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled .mobile-menu-toggle .bar {
  background-color: var(--color-text);
}

/* =========================================================================
   Hero Section
   ========================================================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--color-green-deep);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(20, 30, 20, 0.4) 0%,
      rgba(20, 30, 20, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  margin: 0.5rem;
}

/* =========================================================================
   Section: Nosotros
   ========================================================================= */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-inline: auto;
}

.section-header p {
  color: var(--color-warm-gray);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  text-align: center;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--color-white);
  transition: transform var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background-color: var(--color-cream);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
}

/* =========================================================================
   Dividers
   ========================================================================= */

.floral-divider {
  text-align: center;
  padding: 0;
  width: 100%;
  height: 0;
  position: relative;
  z-index: 10;
}

.floral-divider::after {
  content: '';
  display: inline-block;
  width: 240px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='40' viewBox='0 0 240 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20 Q 50 20, 80 20 T 110 20' stroke='%236b8f6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M40 20 C 35 12, 45 10, 50 20' fill='%236b8f6b'/%3E%3Cpath d='M60 20 C 65 28, 55 30, 50 20' fill='%236b8f6b'/%3E%3Cpath d='M80 20 C 75 12, 85 10, 90 20' fill='%236b8f6b'/%3E%3Cpath d='M100 20 C 105 28, 95 30, 90 20' fill='%236b8f6b'/%3E%3Cpath d='M220 20 Q 190 20, 160 20 T 130 20' stroke='%236b8f6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M200 20 C 205 12, 195 10, 190 20' fill='%236b8f6b'/%3E%3Cpath d='M180 20 C 175 28, 185 30, 190 20' fill='%236b8f6b'/%3E%3Cpath d='M160 20 C 165 12, 155 10, 150 20' fill='%236b8f6b'/%3E%3Cpath d='M140 20 C 135 28, 145 30, 150 20' fill='%236b8f6b'/%3E%3Cg fill='%239b7db8'%3E%3Ccircle cx='120' cy='12' r='3.5'/%3E%3Ccircle cx='114' cy='16' r='3.5'/%3E%3Ccircle cx='126' cy='16' r='3.5'/%3E%3Ccircle cx='116' cy='23' r='3.5'/%3E%3Ccircle cx='124' cy='23' r='3.5'/%3E%3Ccircle cx='120' cy='28' r='3.5'/%3E%3C/g%3E%3Cg fill='%23FFF'%3E%3Ccircle cx='120' cy='12' r='1'/%3E%3Ccircle cx='114' cy='16' r='1'/%3E%3Ccircle cx='126' cy='16' r='1'/%3E%3Ccircle cx='116' cy='23' r='1'/%3E%3Ccircle cx='124' cy='23' r='1'/%3E%3Ccircle cx='120' cy='28' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
  transform: translateY(-50%);
}

/* =========================================================================
   Section: Experiencias (Cards)
   ========================================================================= */

.experiencias.bg-light {
  position: relative;
}

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.experience-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) var(--transition-ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
  height: 240px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-ease);
}

.experience-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-content p {
  margin-bottom: 0;
  color: var(--color-warm-gray);
  font-size: 0.95rem;
}

/* =========================================================================
   Section: Galería
   ========================================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

/* Make some items span 2 rows for masonry-like feel */
.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox-content img {
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #ccc;
}

/* =========================================================================
   Section: Testimonios
   ========================================================================= */

.testimonials-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-lavender) var(--color-cream);
}

.testimonials-grid::-webkit-scrollbar {
  height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
  background: var(--color-cream);
  border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
  background-color: var(--color-lavender);
  border-radius: 4px;
}

.testimonial-card {
  flex: 0 0 350px;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #fbbc04;
  /* Google Yellow */
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-warm-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.author-info h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
}

.google-review {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
}

.google-review::before {
  /* Simple CSS trick for a basic "G" logo appearance or just a generic icon if desired. Using text here */
  content: "G";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #4285F4;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  font-weight: bold;
  margin-right: 6px;
}

/* =========================================================================
   Section: Ubicación
   ========================================================================= */

.ubicacion-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info-list {
  margin: 2rem 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-list .icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.ubicacion-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 400px;
}

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  background-color: #222;
  color: #aaa;
  padding: 4rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 4px;
  filter: brightness(0.9);
}

.footer-links h3,
.footer-social h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: var(--color-lavender);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================================
   Floating WhatsApp Button
   ========================================================================= */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed);
  animation: pulse 2s infinite;
}

.whatsapp-float i {
  font-size: 35px;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =========================================================================
   Scroll Animations
   ========================================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* =========================================================================
   Responsive Media Queries
   ========================================================================= */

@media (min-width: 1100px) {
  .experiences-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {

  .ubicacion-container,
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(5) {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    clip-path: circle(0% at 100% 0);
    /* Wait for JS */
    transition: all 0.4s ease-out;
    gap: 1.5rem;
  }

  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }

  /* Change link color in mobile menu */
  .nav-links a:not(.btn) {
    color: var(--color-text);
    text-shadow: none;
    font-size: 1.2rem;
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-text);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-text);
  }

  .navbar.scrolled .mobile-menu-toggle.active .bar {
    background-color: var(--color-text);
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .testimonials-grid {
    scroll-snap-type: x mandatory;
  }

  .testimonial-card {
    flex: 0 0 85vw;
    padding: 1.5rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}