/* 
  El Norte Textil - Design System 
  Professional, Clean, Elegant, Boutique 
*/

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-grey-light: #F5F5F5;
  --color-blue-dark: #1F3A5F;
  --color-beige: #D9CBB6;
  --color-black: #222222;
  --color-grey-medium: #777777;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: var(--spacing-lg) 5%;
}

@media (min-width: 768px) {
  section {
    padding: var(--spacing-xl) 10%;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-black);
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: var(--color-beige);
  color: var(--color-blue-dark);
}

.btn-secondary:hover {
  filter: brightness(0.95);
  transform: translateY(-5px);
}

.btn-outline {
  border: 2px solid var(--color-blue-dark);
  color: var(--color-blue-dark);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
}

/* Layout - Header */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
  padding: 2rem 5%;
  color: var(--color-white);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 1rem 5%;
  box-shadow: var(--shadow-soft);
  color: var(--color-black);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-beige);
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
  }
  
  .nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: inherit;
  }
  
  .nav-links li a:hover {
    color: var(--color-blue-dark);
  }
  
  .nav-links li a.btn-outline:hover {
    color: var(--color-white) !important;
  }
}

/* Hero Section - Immersive Boutique Model */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('assets/img/hero-bed.png') no-repeat center center/cover;
  padding: 120px 5% 60px;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(31, 58, 95, 0.4), rgba(31, 58, 95, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 4rem 3rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Hide old hero-image fixed style as it's now backdrop */
.hero-image {
  display: none;
}

@media (max-width: 1023px) {
  .hero {
    height: auto;
    flex-direction: column;
    padding-bottom: var(--spacing-xl);
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: var(--spacing-lg);
  }
  
  .hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.benefit-card {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.benefit-icon {
  display: flex;
  justify-content: center;
  color: var(--color-beige);
  margin-bottom: 1.5rem;
}

.benefit-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.5px;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--color-blue-dark);
}

/* Product Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--color-white);
  transition: var(--transition-smooth);
}

.product-card:hover .product-info {
  padding-bottom: 3rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Packs Section */
.packs {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
}

.packs h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pack-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.pack-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-beige);
}

.pack-tag {
  display: inline-block;
  background: var(--color-beige);
  color: var(--color-blue-dark);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.pack-card h3 {
  margin-bottom: 1.5rem;
}

.pack-features {
  margin-bottom: 2rem;
}

.pack-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}



/* Trust Section */
.brands-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.brands-flex:hover {
  filter: grayscale(0);
  opacity: 1;
}

.brand-logo {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  mix-blend-mode: multiply; /* Helps eliminate white square backgrounds if they are jpegs */
  transition: var(--transition-smooth);
}

/* CTA Section */
.cta-banner {
  background: var(--color-beige);
  padding: 5rem 5%;
  border-radius: 30px;
  margin: var(--spacing-xl) 5%;
  text-align: center;
  color: var(--color-blue-dark);
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
  filter: brightness(1.2); /* Subtle pop for dark background */
}

/* Footer Section - Original */
footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.7);
  padding: 5rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Tablet */
@media (max-width: 1024px) {
  html { font-size: 18px; } /* Slightly larger typography for touch */
  
  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }
}

/* Forms - Solicitar Presupuesto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-blue-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--color-grey-light);
  color: var(--color-black);
}

.contact-form input:focus,
.contact-form textarea:focus,
#tipo_alojamiento:focus {
  outline: none;
  border-color: var(--color-beige);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(217, 203, 182, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0a0a0;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Location Section (Mapa y Horario)
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-small);
  height: 400px;
}

.map-container iframe {
  filter: grayscale(100%) contrast(110%);
  transition: filter 0.5s ease;
}

.map-container:hover iframe {
  filter: grayscale(70%) contrast(100%);
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

.hours-container {
  background: var(--color-grey-light);
  padding: 3rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hours-list {
  list-style: none;
  padding: 0;
  color: var(--color-grey-medium);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 0;
  font-size: 1rem;
}

/* ==========================================================================
   Cookie Consent System (GDPR/AEPD)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid var(--color-beige);
  font-family: var(--font-primary);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    gap: 2rem;
  }
}

.cookie-content h4 {
  margin-bottom: 0.5rem;
  color: var(--color-blue-dark);
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--color-grey-medium);
  margin: 0;
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 200px;
}

@media (min-width: 768px) {
  .cookie-actions {
    flex-direction: row;
  }
}

.cookie-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Modal de Configuración */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14, 29, 52, 0.8); /* --color-blue-dark */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-box {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cookie-modal-box h3 {
  color: var(--color-blue-dark);
  margin-bottom: 0.5rem;
}

.cookie-modal-box > p {
  font-size: 0.9rem;
  color: var(--color-grey-medium);
  margin-bottom: 2rem;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-grey-light);
}

.cookie-cat-info strong {
  display: block;
  font-size: 1rem;
  color: var(--color-black);
  margin-bottom: 0.2rem;
}

.cookie-cat-info p {
  font-size: 0.8rem;
  color: var(--color-grey-medium);
  margin: 0;
}

.cookie-cat-toggle {
  margin-left: 1rem;
  min-width: 50px;
  text-align: right;
}

.cookie-modal-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Switch Toggle CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { 
  opacity: 0; width: 0; height: 0; 
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--color-beige);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--color-beige);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}
