/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C3742;
  background-color: #FAF9F5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- BRAND COLORS & FONTS --- */
:root {
  --color-primary: #2C3742;
  --color-secondary: #E2B671;
  --color-accent: #417746;
  --color-background: #FAF9F5;
  --color-surface: #FFFFFF;
  --color-earth1: #A1A97A;
  --color-earth2: #7c6846;
  --color-earth3: #C5B59A;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --radius-lg: 40px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 18px 0 rgba(60,72,54,.09);
  --shadow-btn: 0 2px 8px 0 rgba(44,55,66,.09);
  --shadow-focus: 0 0 0 3px #E2B67155;
  --transition-main: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}
h2, .h2 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -.2px;
}
h3, .h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0;
}
h4, .h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 500;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2C3742;
  margin-bottom: 12px;
  line-height: 1.7;
}
p:last-child, li:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.4rem;
  }
  h3, .h3 {
    font-size: 1.1rem;
  }
}

/* --- LAYOUT: CONTAINER & SECTIONS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-background);
}
section + section {
  margin-top: 0;
}
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .section {
    padding: 32px 10px;
    margin-bottom: 32px;
    border-radius: var(--radius-md);
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-surface);
  box-shadow: 0 2px 12px 0 rgba(44,55,66,0.07);
  position: sticky;
  top: 0; z-index: 902;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
header nav img {
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 2px 4px 0 #aac08a33;
}
header nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav ul li a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 16px;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-main), color var(--transition-main);
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--color-earth1);
  color: var(--color-surface);
  outline: none;
}

/* --- MOBILE HEADER & MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: var(--color-secondary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-main);
  position: relative;
  z-index: 1202;
  box-shadow: var(--shadow-btn);
}
.mobile-menu-toggle:focus {
  outline: var(--shadow-focus);
}
.mobile-menu {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(44, 55, 66, 0.80);
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-main);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  font-size: 2rem;
  color: var(--color-surface);
  background: var(--color-accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-main);
}
.mobile-menu-close:focus {
  outline: var(--shadow-focus);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 40px 40px;
}
.mobile-nav a {
  color: var(--color-surface);
  font-size: 1.3rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 9px 0 9px 0;
  letter-spacing: .05em;
  border-radius: 8px;
  width: 100%;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}
@media (max-width: 1024px) {
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN LAYOUT PATTERNS --- */
.content-wrapper, .text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.content-wrapper {
  gap: 32px;
}
.text-section {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: 0 2px 18px 0 rgba(124,104,70,.06);
}
@media (max-width: 768px) {
  .content-wrapper, .text-section {
    padding: 0;
    border-radius: var(--radius-sm);
  }
  .text-section {
    padding: 16px 6px;
  }
}

/* --- CARDS & FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 22px;
  min-width: 260px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.card:hover, .card:focus {
  box-shadow: 0 6px 26px 0 rgba(44,55,66,.16);
  transform: translateY(-6px) scale(1.01);
  outline: none;
}
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  min-width: 180px;
  max-width: 330px;
  margin-bottom: 20px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item {
    min-width: 0; max-width: 100%;
  }
}

/* --- HERO, CTA, BUTTONS --- */
.cta, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
  border: none;
  margin-top: 10px;
}
.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta:hover, .cta:focus, .primary:hover, .primary:focus {
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: 0 8px 28px 0 rgba(44,55,66,0.2);
  outline: none;
}

/* --- ICONS STYLING --- */
img[alt^="Tradicion"], img[alt^="Arte"], img[alt^="Personajes"], img[alt^="Monumento"], img[alt^="Telé"], img[alt^="Email"], img[alt^="Dirección"], img[alt^="Correo"], img[alt^="Horario"], img[alt^="Location"] {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7FAF7;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #34482a;
  font-size: 1.02rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #417746;
  font-family: var(--font-body);
  font-weight: 500;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- FOOTER --- */
footer {
  background: #EDE7DA;
  padding: 28px 0 16px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer ul {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
footer ul li a {
  color: var(--color-earth2);
  font-size: 0.98rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition-main);
}
footer ul li a:hover, footer ul li a:focus {
  background: var(--color-earth1);
  color: #fff;
  outline: none;
}
footer p {
  color: #412D18;
  font-size: 0.96rem;
  margin-top: 5px;
}
@media (max-width: 768px) {
  footer {
    padding: 18px 0 16px 0;
    margin-top: 32px;
  }
  footer ul {
    gap: 9px;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #e7e0cd;
  color: var(--color-primary);
  box-shadow: 0 -2px 24px 0 rgba(60,72,54,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 32px;
  font-size: 1rem;
  z-index: 1300;
  animation: slideInFromBottom .5s;
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
  flex: 1 1 auto;
  max-width: 520px;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  margin: 0;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-main), color var(--transition-main);
  border: none;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-accent);
  color: var(--color-surface);
  outline: none;
}
.cookie-banner button.reject {
  background: #dab671;
  color: #fff;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #a18a6e;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--color-earth1);
  color: var(--color-primary);
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #417746;
  color: #fff;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px 8px;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-banner-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1400;
  inset: 0;
  background: rgba(44,55,66,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .35s;
}
.cookie-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgb(60 72 54 / 18%);
  padding: 36px 38px;
  min-width: 310px;
  max-width: 99vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: slideUp .4s;
}
.cookie-modal h3 {
  margin-bottom: 7px;
}
.cookie-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-main);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f5ee;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}
.cookie-modal .cookie-category span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 40px;
  height: 24px;
  background: #B7BCAD;
  border-radius: 13px;
  position: relative;
  outline: none;
  margin-left: 8px;
  cursor: pointer;
  transition: background var(--transition-main);
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left var(--transition-main);
}
.cookie-modal .cookie-toggle:checked:before {
  left: 20px;
}
.cookie-modal .cookie-desc {
  margin-top: 5px;
  color: #777;
  font-size: .97rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 16px;
}
.cookie-modal-actions button {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  box-shadow: var(--shadow-btn);
  border: none;
  transition: background var(--transition-main), color var(--transition-main);
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--color-accent);
  color: var(--color-surface);
  outline: none;
}
@media (max-width: 512px) {
  .cookie-modal {
    padding: 20px 10px;
    min-width: 0;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 7px;
  }
}

/* --- ULs AS FLEX FEATURE/BENEFIT LISTS --- */
.content-wrapper > ul, .text-section > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  margin-top: 6px;
}
.content-wrapper > ul li, .text-section > ul li {
  background: #f7f3e7;
  border-radius: var(--radius-sm);
  padding: 18px 18px;
  min-width: 180px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(44,55,66,0.06);
  flex: 1 1 220px;
}
/* Allow ULs that use icons per design, featured on homepage */
.content-wrapper > ul li img {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 768px) {
  .content-wrapper > ul, .text-section > ul {
    flex-direction: column;
    gap: 10px;
  }
  .content-wrapper > ul li, .text-section > ul li {
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
  }
}

/* --- LINKS --- */
a {
  color: var(--color-accent);
  transition: color var(--transition-main);
}
a:hover, a:focus {
  color: var(--color-earth2);
  outline: none;
  text-decoration: underline;
}

/* --- FORMS (Contact/Email) --- */
input, textarea {
  border: 1px solid #B7BCAD;
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 15px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #f7f3e7;
  color: var(--color-primary);
  transition: border var(--transition-main), box-shadow var(--transition-main);
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px #41774630;
  outline: none;
}
label {
  font-family: var(--font-body);
  font-size: 1.06rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}

/* --- BUTTONS GENERAL --- */
button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 10px 22px;
  border-radius: 39px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-main), color var(--transition-main);
}
button:focus {
  outline: var(--shadow-focus);
}
button:hover {
  background: var(--color-earth1);
  color: var(--color-surface);
}

/* --- ANIMATIONS --- */
@keyframes slideInFromBottom {
  0% {transform: translateY(40px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  0% {transform: translateY(40px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}

/* --- UTILITIES & MISC --- */
.align-center { text-align: center; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-20 { gap: 20px; }
.gap-12 { gap: 12px; }
.mt-20 { margin-top: 20px; }
.pb-30 { padding-bottom: 30px; }
.radius-md { border-radius: var(--radius-md); }

/* --- ORGANIC DESIGN SHAPES & TEXTURE (subtle) --- */
.section {
  background:
    linear-gradient(122deg, #FCFAF1 85%, #E6E4DC 100%),
    url('assets/texture/noise.png') repeat;
  box-shadow: 0 8px 34px -16px rgba(44,55,66,.06);
  position: relative;
}
.section::after {
  content: '';
  display: block;
  position: absolute; right: 38px; bottom: 0;
  width: 120px; height: 24px;
  border-radius: 80% 80% 100% 30% / 60% 100% 100% 60%;
  background: var(--color-earth1);
  opacity: 0.16;
  z-index: 0;
}
.text-section {
  position: relative;
  z-index: 2;
  background: rgba(255,255,250,0.98);
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.15rem; }
  .section { margin-bottom: 38px; padding: 30px 6px; }
}
@media (max-width: 768px) {
  h2 { font-size: 1.3rem; }
  .card, .feature-item { padding: 18px 12px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.05rem; }
  .container, .section { padding: 12px 4px; }
}

/* --- ACCESSIBILITY / FOCUS STATES --- */
a:focus, button:focus, .cta:focus {
  outline: var(--shadow-focus);
  box-shadow: 0 0 0 3px #a1a97a33;
}

/* END OF STYLE */
