/* Importación de Fuentes Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* CSS Variables */
:root {
  --primary-color: #B08000;
  --secondary-color: #D4A000;
  --accent-color: #006064;
  --background-color: #FFF9E0;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(255,255,255,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Source Sans 3', sans-serif;
}
.bg-gray-100,
.bg-white,
.bg-yellow-100,
.bg-blue-100,
.bg-red-100,
.bg-green-100,
.bg-gray-100 p,
.bg-white p,
.bg-yellow-100 p,
.bg-blue-100 p,
.bg-red-100 p,
.bg-green-100 p {
  color: #111A13;
}
/* 🎬 CSS Properties para Animaciones */
@property --count { 
  syntax: '<integer>'; 
  initial-value: 0; 
  inherits: false; 
}

/* RESET E INSTALACIÓN DE PRESET DARK-PRO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  background: var(--secondary-color);
  color: #F0F0F0;
  font-family: var(--alt-font);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section {
  background: #9f957a;
  padding: 56px 16px;
  margin: 0;
}

@media(min-width:1024px) {
  section {
    padding: 72px 24px;
  }
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

p, .subtitle {
  color: rgba(240, 240, 240, 0.75);
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tipografía de Títulos */
h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER Y NAVEGACIÓN BURGER */
header {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo img {
  max-height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn .bar {
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 999;
  padding: 24px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.site-nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media(min-width:768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border-bottom: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .site-nav a {
    font-size: 1rem;
  }
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--alt-font);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  min-height: 44px;
}

.btn:hover, .btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--accent-color);
}

.btn-primary {
  background: var(--accent-color);
  color: #FFFFFF;
  border: none;
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

/* HERO (Bento Grid) */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-bento-main {
  background: var(--primary-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-bento-img {
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 280px;
  border-radius: var(--radius-lg);
}

.hero-bento-stat {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.bento-color-1 { background: var(--primary-color); filter: brightness(0.9); }
.bento-color-2 { background: var(--accent-color); }
.bento-color-3 { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255,255,255,0.15); }

.stat-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media(min-width:1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
  }
  .hero-bento-main {
    grid-column: span 2;
  }
  .hero-bento-img {
    grid-column: span 1;
    min-height: auto;
  }
  .hero-bento-stat {
    grid-column: span 1;
  }
}

/* TÍTULOS DE SECCIÓN */
.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* FEATURES */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* STATS COUNTER ANIMATION */
.stat-number-wrapper {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num {
  --target: 80;
  animation: count-up 2s ease-out forwards;
  animation-timeline: view(); 
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}

.stat-num::after { 
  content: counter(n); 
}

.stat-suffix {
  color: var(--accent-color);
}

@keyframes count-up { 
  from { --count: 0; } 
  to { --count: var(--target); } 
}

/* ABOUT SECTION */
.about-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  font-weight: 600;
  color: #FFFFFF;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.stars {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: #FFFFFF;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: rgba(240, 240, 240, 0.6);
}

/* GALLERY (Responsive Grid) */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-block-1 { background: var(--accent-color); }
.color-block-2 { background: var(--primary-color); }
.color-block-3 { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255,255,255,0.1); }

.gallery-overlay-text {
  font-family: var(--main-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  padding: 16px;
}

@media(min-width:768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item-main {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 380px;
  }
}

/* CONTACT + FAQ */
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
}

.contact-detail-item strong {
  color: #FFFFFF;
  margin-bottom: 4px;
}

.contact-form-wrapper {
  background: rgba(255,255,255,0.04);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--alt-font);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 96, 100, 0.5);
}

/* FAQ OPEN STATE */
.faq-container {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border-top: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #FFFFFF;
}

/* SCROLL REVEAL */
@keyframes reveal-up { 
  from { opacity: 0; transform: translateY(32px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view(); 
  animation-range: entry 0% entry 30%;
}

/* FOOTER */
footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

footer img[alt="logo"] { 
  filter: brightness(0) invert(1); 
  max-height: 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: rgba(240, 240, 240, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(240, 240, 240, 0.5);
}