/**
 * Calidad FullPage.js Styles
 * Full-screen scrolling sections with image backgrounds
 * DejaVu Restaurant - Dark Mode #111111
 */

/* Compact Header for Calidad Page - Section 0 only */
body.page-id-27 .site-header.header-compact {
  padding: 0.5rem 0;
  min-height: auto;
  height: auto;
  max-height: 15vh; /* Max 15% of viewport height */
}

body.page-id-27 .site-header.header-compact .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo left, hamburger right */
  padding: 0.5rem 2rem;
  max-width: 100%;
  width: 100%;
  gap: 2rem; /* Space between logo and hamburger */
}

body.page-id-27 .site-header.header-compact .branding {
  flex: 0 0 auto;
  margin: 0;
  order: 1; /* Logo first (left) */
}

body.page-id-27 .site-header.header-compact .branding img,
body.page-id-27 .site-header.header-compact .branding .custom-logo {
  max-height: 60px; /* Reduced logo size */
  width: auto;
}

body.page-id-27 .site-header.header-compact .primary-nav {
  display: none; /* Hide menu on compact mode, show hamburger */
}

body.page-id-27 .site-header.header-compact .menu-toggle {
  display: flex;
  position: relative;
  right: 0;
  top: 0;
  margin-left: auto; /* Push to the right */
  order: 3; /* Hamburger last (right) */
  z-index: 1001; /* Above everything including overlay */
}

/* Ensure mobile menu works in compact mode */
body.page-id-27 .site-header .primary-nav.open {
  display: flex !important; /* Show menu when open */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
  background: rgba(17, 17, 17, 0.98);
  z-index: 1000;
  padding: 2rem;
  overflow-y: hidden; /* No scroll */
  gap: 0; /* Remove gap, use ul styling */
}

/* Center the menu list */
body.page-id-27 .site-header .primary-nav.open ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important; /* Space between menu items */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* Center menu items */
body.page-id-27 .site-header .primary-nav.open li {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* Center menu links */
body.page-id-27 .site-header .primary-nav.open a {
  font-size: 1.5rem !important;
  padding: 0.5rem 1rem !important;
  text-align: center !important;
  width: auto !important;
  display: inline-block !important;
  color: #e6e6e6 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

body.page-id-27 .site-header .primary-nav.open a:hover,
body.page-id-27 .site-header .primary-nav.open .current-menu-item a {
  color: #dbad50 !important;
}

body.page-id-27 .menu-overlay {
  z-index: 999; /* Below hamburger button */
}

body.page-id-27 .menu-overlay.active {
  display: block;
}

/* Adjust section height to account for compact header */
body.page-id-27 .section-welcome {
  padding-top: 0; /* Remove padding, use flexbox centering instead */
  /* Perfect center alignment for content */
  align-items: center !important;
  justify-content: center !important;
}

/* Adjust welcome content positioning with compact header */
body.page-id-27 .site-header.header-compact ~ main .section-welcome .section-content {
  margin-top: 0;
  padding-top: 0;
  width: 100%; /* Ensure full width for centering */
  max-width: 1200px; /* Maintain max-width */
  margin-left: auto;
  margin-right: auto;
}

/* Reset and Base */
body.page-id-27 {
  overflow: hidden;
}

.calidad-fullpage {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 100vh;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* All sections - full viewport minus header */
.section {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Custom Navigation Dots */
.fullpage-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fullpage-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(230, 230, 230, 0.3);
  border: 2px solid rgba(230, 230, 230, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.fullpage-nav-dot:hover {
  background: rgba(255, 90, 95, 0.5);
  border-color: #ff5a5f;
  transform: scale(1.2);
}

.fullpage-nav-dot.active {
  background: #ff5a5f;
  border-color: #ff5a5f;
  transform: scale(1.3);
}

.fullpage-nav-tooltip {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.95);
  color: #e6e6e6;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid rgba(255, 90, 95, 0.3);
}

.fullpage-nav-dot:hover .fullpage-nav-tooltip {
  opacity: 1;
}

@media (max-width: 768px) {
  .fullpage-nav {
    right: 10px;
  }
  
  .fullpage-nav-dot {
    width: 10px;
    height: 10px;
  }
  
  .fullpage-nav-tooltip {
    display: none;
  }
}

/* Hide elements that will be animated - solo primera sección por defecto */
.section .welcome-title,
.section .welcome-tagline,
.section .welcome-subtitle,
.section .scroll-indicator,
.section .hero-title,
.section .hero-subtitle,
.section .origen-image,
.section .origen-text h2,
.section .origen-text p,
.section .section-title,
.section .section-text p,
.section .caracteristica-card,
.section .certificado-cta,
.section .compromiso-section {
  /* Por defecto visible */
  opacity: 1;
}

/* Hide only on first load - will be shown by GSAP */
.section-welcome .welcome-title {
  opacity: 0;
  transform: scale(0.9);
}
.section-welcome .welcome-tagline {
  opacity: 0;
  transform: translateY(30px);
}
.section-welcome .welcome-subtitle {
  opacity: 0;
  transform: translateY(20px);
}
.section-welcome .scroll-indicator {
  opacity: 0;
}

/* For users with prefers-reduced-motion, show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .section-welcome .welcome-title,
  .section-welcome .welcome-tagline,
  .section-welcome .welcome-subtitle,
  .section-welcome .scroll-indicator,
  .section-hero .hero-title,
  .section-hero .hero-subtitle,
  .section-origen .origen-image,
  .section-origen .origen-text h2,
  .section-origen .origen-text p,
  .section-bostaurus .section-title,
  .section-bostaurus .section-text p,
  .section-caracteristicas .section-title,
  .section-caracteristicas .caracteristica-card,
  .section-certificado .section-title,
  .section-certificado .certificado-cta,
  .section-certificado .compromiso-section {
    opacity: 1 !important;
  }
}

/* Adjust for fixed header */
body.page-id-27 .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

/* Header hidden state */
body.page-id-27 .site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Header visible state */
body.page-id-27 .site-header.header-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.page-id-27 #fullpage {
  margin-top: 0;
  padding-top: 0;
}

.section-content {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  text-align: center;
  z-index: 2;
  position: relative;
}

/* Section 0: Welcome (con header visible) */
.section-welcome {
  background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
  /* Sin padding-top, usa align-items: center heredado de .section */
  /* El header compacto se posiciona con position: fixed, no afecta el layout */
}

.welcome-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: #ff5a5f;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.welcome-tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #e6e6e6;
  margin: 0 0 0.5rem;
  font-weight: 300;
}

.welcome-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #dbad50;
  margin: 0 0 3rem;
  opacity: 0.9;
}

/* Section 1: Hero with background image (sin header) */
.section-hero {
  background-image: url('/wp-content/uploads/2025/10/sayaguesa05.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: #e6e6e6;
  margin: 0 0 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #e6e6e6;
  margin: 0 0 3rem;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #dbad50;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: pulse 2s ease-in-out infinite;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #dbad50;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* Section 2: Origen (grid layout) */
.section-origen {
  background-color: #111111;
}

.origen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.origen-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(255, 90, 95, 0.3);
}

.origen-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ff5a5f;
  margin: 0 0 1.5rem;
}

.origen-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #e6e6e6;
  line-height: 1.8;
  margin: 0 0 1rem;
}

/* Section 3: Bos Taurus (centered text) */
.section-bostaurus {
  background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
}

.section-bostaurus .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #dbad50;
  margin: 0 0 2rem;
  line-height: 1.3;
}

.section-bostaurus .section-text {
  max-width: 900px;
  margin: 0 auto;
}

.section-bostaurus .section-text p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #e6e6e6;
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.section-bostaurus .section-text strong {
  color: #ff5a5f;
  font-weight: 600;
}

/* Section 4: Características (5-card grid) */
.section-caracteristicas {
  background-color: #111111;
}

.section-caracteristicas .section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #e6e6e6;
  margin: 0 0 3rem;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.caracteristica-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 90, 95, 0.3);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.caracteristica-card:hover {
  background: rgba(255, 90, 95, 0.1);
  border-color: #ff5a5f;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 90, 95, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  color: #dbad50;
  margin-bottom: 1rem;
}

.caracteristica-card h3 {
  font-size: 1.2rem;
  color: #ff5a5f;
  margin: 0 0 0.75rem;
}

.caracteristica-card p {
  font-size: 0.95rem;
  color: #e6e6e6;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Section 5: Certificado y Compromiso */
.section-certificado {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.section-certificado .section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #dbad50;
  margin: 0 0 1.5rem;
}

.section-certificado .section-text {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.section-certificado .section-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #e6e6e6;
  line-height: 1.7;
  margin: 0;
}

.certificado-cta {
  margin: 3rem 0;
}

.btn-certificado {
  display: inline-block;
  background: linear-gradient(135deg, #ff5a5f 0%, #ff3a3f 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 90, 95, 0.4);
}

.btn-certificado:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 90, 95, 0.6);
  background: linear-gradient(135deg, #ff3a3f 0%, #ff5a5f 100%);
}

.compromiso-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(219, 173, 80, 0.3);
}

.compromiso-section .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #ff5a5f;
  margin: 0 0 1.5rem;
}

.compromiso-section .section-text {
  max-width: 800px;
  margin: 0 auto;
}

.compromiso-section .section-text p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #e6e6e6;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .origen-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .caracteristicas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-content {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-content {
    padding: 1rem;
  }
  
  .compromiso-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator,
  .arrow-down,
  .caracteristica-card {
    animation: none;
  }
  
  .caracteristica-card:hover {
    transform: none;
  }
  
  .btn-certificado:hover {
    transform: none;
  }
}

/* Section 6: Footer/Contacto */
.section-footer {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.section-footer .section-content {
  text-align: center;
  max-width: 800px;
}

.section-footer .section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #dbad50;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-address,
.footer-contact {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e6e6e6;
}

.footer-address strong,
.footer-contact strong {
  display: block;
  color: #dbad50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.footer-contact a {
  color: #ff5a5f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #dbad50;
  text-decoration: underline;
}

.footer-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-reserva,
.btn-carta {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 250px;
}

.btn-carta {
  background: #dbad50;
  color: #111111;
  border: 2px solid #dbad50;
}

.btn-carta:hover {
  background: transparent;
  color: #dbad50;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(219, 173, 80, 0.4);
}

/* Initial state for animations */
.section-footer .section-title,
.section-footer .footer-info,
.section-footer .footer-cta {
  opacity: 0;
}

/* Footer responsive */
@media (max-width: 768px) {
  .section-footer .section-title {
    font-size: 2rem;
  }
  
  .footer-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn-carta {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .section-footer .section-title {
    font-size: 1.5rem;
  }
  
  .footer-address,
  .footer-contact {
    font-size: 0.95rem;
  }
  
  .btn-carta {
    max-width: 280px;
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }
}

/* Extra small screens (320px - 480px) - Reduce font sizes to fit content */
@media (max-width: 480px) {
  /* Welcome section */
  .welcome-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .welcome-subtitle {
    font-size: 1rem !important;
  }
  
  .restaurant-location {
    font-size: 0.85rem !important;
  }
  
  /* Hero section */
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  /* General section titles */
  .section-title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }
  
  .section-subtitle {
    font-size: 0.95rem !important;
  }
  
  /* Text content */
  .section-text,
  .heritage-text {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  /* Characteristics section */
  .characteristic-item h3 {
    font-size: 1rem !important;
  }
  
  .characteristic-item p {
    font-size: 0.85rem !important;
  }
  
  /* Certificate section */
  .certificate-text {
    font-size: 0.9rem !important;
  }
  
  .btn-certificado {
    font-size: 1rem !important;
    padding: 0.8rem 1.5rem !important;
  }
  
  /* Footer section */
  .section-footer .section-title {
    font-size: 1.3rem !important;
  }
  
  .footer-address,
  .footer-contact {
    font-size: 0.85rem !important;
  }
  
  .btn-carta {
    font-size: 1rem !important;
    padding: 0.8rem 1.5rem !important;
  }
  
  /* Reduce padding for all sections */
  .section-content {
    padding: 1.5rem 1rem !important;
  }
}

/* Ultra small screens (320px) - Even more aggressive reduction */
@media (max-width: 360px) {
  .welcome-title {
    font-size: 1.6rem !important;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  .section-text,
  .heritage-text {
    font-size: 0.85rem !important;
  }
  
  .characteristic-item h3 {
    font-size: 0.9rem !important;
  }
  
  .characteristic-item p {
    font-size: 0.8rem !important;
  }
  
  .section-content {
    padding: 1rem 0.75rem !important;
  }
}
