/* ===== CSS RESET & NORMALIZATION ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #FCFAF7;
  color: #2B3A42;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #F5A623;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #2B3A42;
}
ul, ul li, ol, ol li {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  font-size: 16px;
  padding: 12px 10px;
  text-align: left;
}

/* ===== VARIABLES ===== */
:root {
  --primary: #2B3A42;
  --secondary: #C9D6D5;
  --accent: #F5A623;
  --background: #FCFAF7;
  --card-bg: #FFF;
  --shadow: 0 2px 24px 0 rgba(45, 35, 14, 0.10);
  --radius: 18px;
  --danger: #ba4a1a;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  color: #2B3A42;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 10px; }
p, li {
  font-size: 1em;
  color: #384146;
  margin-bottom: 12px;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong { font-weight: 700; }
.text-section h3, .text-section h2 {
  margin-top: 18px;
}
.text-section ul, .content-wrapper ul {
  margin-bottom: 18px;
  padding-left: 0;
}
.text-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.text-section ul li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
}

/* ===== BASE CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 600px) {
  section {
    padding: 30px 6px;
  }
}

/* ===== NAVIGATION ===== */
header {
  background: var(--background);
  border-bottom: 1px solid #EAEAEA;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.16s, color 0.16s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--secondary);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 9px 0 rgba(245,166,35, 0.15);
  transition: background 0.16s, box-shadow 0.18s, color 0.16s;
  margin-left: 10px;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #d98d1a;
  color: #fff2df;
  box-shadow: 0 2px 16px 0 rgba(245,166,35, 0.18);
  outline: none;
}

/* ============ MOBILE MENU ============ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--accent);
  background: transparent;
  border: none;
  padding: 7px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 1051;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: var(--background);
  box-shadow: -4px 0 34px 0 rgba(43,58,66, .08);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.71,.05,.33,1.22);
  z-index: 2000;
  padding: 32px 20px 16px 28px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 6px 6px;
  border-radius: var(--radius);
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  padding: 12px;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.10rem;
  font-weight: 600;
  color: var(--primary);
  width: 100%;
  transition: background 0.18s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--secondary);
  color: var(--accent);
}
@media (max-width: 960px) {
  .nav-links,
  nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 960px) {
  nav {
    gap: 10px;
  }
}

@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(160deg, #fffbea 0%, #FFF 80%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 30px -2px rgba(225,179,128,.09);
  padding: 60px 0 48px 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-section h1 {
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -1px;
}
.hero-section p {
  font-size: 1.2rem;
  color: #384146;
  margin-bottom: 18px;
  max-width: 520px;
  text-align: center;
}
.hero-section .btn-primary {
  margin-top: 12px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 24px;
}
.feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 20px 18px;
  flex: 1 1 220px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 36px 0 rgba(43,58,66, 0.19);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature-grid h3 {
  font-size: 1.19rem;
  color: var(--accent);
  margin-bottom: 0;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 15px;
  }
  .feature-grid > div {
    min-width: 150px;
    padding: 16px 8px;
  }
}
@media (max-width: 660px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    width: 100%;
    min-width: 0;
  }
}

/* ===== GENERAL CARDS & PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  position: relative;
}

.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;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 10px 0;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 20px 18px 20px;
  background: #fffbe9;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px 0 rgba(245,166,35,0.10);
  min-width: 210px;
  max-width: 350px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  border: 1.5px solid #F5E5C2;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(245,166,35,0.12);
}
.testimonial-card p {
  color: #2B3A42;
  font-size: 1.06rem;
  text-align: left;
}
.testimonial-card span {
  color: #aa8006;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
  align-self: flex-end;
  opacity: 0.92;
  font-family: 'Montserrat', Arial, sans-serif;
  padding-top: 6px;
}
.rating-summary {
  background: #fff9ec;
  color: #2B3A42;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 10px;
  margin-bottom: 0;
  min-width: 210px;
  box-shadow: 0 1px 6px 0 rgba(245,166,35,0.09);
}

/* ===== SECTION & SPACING PATTERNS ===== */
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
@media(max-width:600px){
  .section {
    padding: 28px 6px !important;
  }
}

/* ===== PRICING TABLE ===== */
.pricing-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1.5px solid #F5E5C2;
  overflow: hidden;
}
.pricing-table th {
  background: #FCF5E6;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.pricing-table td {
  color: #3e483d;
  font-family: 'Open Sans', sans-serif;
}
.pricing-table tr {
  border-bottom: 1px solid #f4efe4;
}
.pricing-table tr:last-child {
  border-bottom: none;
}
@media(max-width:600px){
  .pricing-table th, .pricing-table td {
    font-size: 0.93rem;
    padding: 10px 5px;
  }
}

/* ===== SPECIAL OFFERS ===== */
.special-offers {
  background: #FCF5E6;
  border-radius: var(--radius);
  box-shadow: 0 1px 8px 0 rgba(245,166,35,.08);
  margin-top: 22px;
  padding: 18px 18px 10px 22px;
}
.special-offers h2 {
  color: var(--accent);
  margin-bottom: 8px;
}
.special-offers ul {
  margin-bottom: 0;
}

/* ===== FAQ STYLES ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 14px 22px;
  margin-bottom: 0px;
}
.faq-list h3 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
}
footer .container {
  padding: 0 16px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 28px 0 20px 0;
}
.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.footer-info img {
  width: 64px;
  height: auto;
  border-radius: 12px;
}
.footer-info .text-section {
  color: #fff;
  font-size: 0.96rem;
}
.footer-info .text-section p, .footer-info .text-section a {
  color: #F6F6F6;
  margin-bottom: 7px;
  font-size: 1em;
}
.footer-info img[alt^="Teléfono"],
.footer-info img[alt^="Email"],
.footer-info img[alt^="Horario"] {
  width: 17px;
  display: inline;
  vertical-align: middle;
  margin-right: 8px;
}
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 6px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  transition: box-shadow 0.15s, background 0.15s;
  box-shadow: 0 1px 7px 0 rgba(43,58,66,0.07);
  opacity: 0.98;
}
.social-links a:hover {
  background: var(--accent);
}
.social-links img {
  width: 22px;
  height: 22px;
  display: block;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #f0e9de;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  padding: 5px 13px;
  transition: background .18s, color .11s;
}
.footer-nav a:hover {
  color: var(--accent);
  background: #fff;
}
@media (max-width: 830px) {
  .footer-info {
    flex-direction: column;
    gap: 13px;
  }
  footer .content-wrapper {
    gap: 22px;
  }
  .footer-nav {
    gap: 10px;
    margin-top: 6px;
  }
}
@media (max-width: 600px) {
  footer .content-wrapper {
    padding: 16px 0 8px 0;
    gap: 18px;
  }
  .footer-info img {
    width: 46px;
  }
  .social-links a {
    width: 34px; height: 34px;
  }
  .social-links img {
    width: 18px; height: 18px;
  }
  .footer-nav a {
    font-size: 0.97rem;
    padding: 5px 6px;
  }
}

/* ===== MAP/LOCATION ===== */
.map-location {
  background: #FFFDE0;
  border-radius: var(--radius);
  color: #495047;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 1.04rem;
  box-shadow: 0 1px 8px 0 rgba(245,166,35,.08);
}
.map-location img {
  width: 20px;
  margin-right: 6px;
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 700px) {
  .container {
    max-width: 98vw;
    padding: 0 5px;
  }
  .feature-grid > div {
    min-width: 0;
    padding: 10px 6px;
  }
}
@media (max-width: 570px) {
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 10px !important;
  }
  .testimonial-card, .rating-summary {
    min-width: 0;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.35rem;}
  h2 {font-size: 1.1rem;}
  .btn-primary {
    font-size: 0.97rem;
    padding: 11px 18px;
  }
}

/* ====== SECTION, GRID & CARD SPACING ====== */
.content-wrapper {
  gap: 24px !important;
}
.card-container { gap:24px; }
.card { margin-bottom:20px; }
.content-grid { gap:20px; }
.text-image-section { gap:30px; }
.testimonial-card { gap:20px; padding:20px; margin-bottom:20px; }
.feature-item { gap:15px; }

/* ====== Cookie Consent Banner ====== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FCECC7;
  color: #2B3A42;
  box-shadow: 0 -2px 14px 0 rgba(245,166,35,.23);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 2vw 18px 2vw;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 64px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.74,-0.19,.39,1.43), opacity 0.36s;
}
.cookie-banner.visible {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 0;
  margin-right: 0;
  transition: background .17s, color .14s, box-shadow .14s;
}
.cookie-banner .cookie-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #d98d1a;
  color: #fff2df;
  box-shadow: 0 2px 12px 0 rgba(245,166,35, 0.13);
}
.cookie-banner .cookie-reject {
  background: #eee2ba;
  color: #473306;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #f6d296;
  color: #ba4a1a;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid #d4b37c;
  font-weight: 600;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #f7dda7;
  color: #9b7800;
}

/* ====== Cookie Preferences Modal ====== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 4002;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(41,33,15,0.15);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.33s cubic-bezier(.38,.3,.53,1.02);
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  min-width: 94vw; max-width: 400px;
  box-shadow: 0 4px 32px 0 rgba(43,58,66,0.21);
  padding: 36px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: modalIn 0.39s cubic-bezier(.59,.01,.46,1.49);
}
@keyframes modalIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1.0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 19px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--accent);
  cursor: pointer;
  border-radius: var(--radius);
  line-height: 1;
  padding: 3px 7px;
  transition: background .19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus{
  background: #fef6e7;
}
.cookie-modal-category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  padding: 7px 0;
}
.cookie-modal-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--accent);
  border-radius: 7px;
}
.cookie-modal-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 7px;
}
.cookie-modal-btns {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* ======== UTILITIES & HELPER CLASSES ======== */
.hide { display: none !important; }
.text-center { text-align: center; }
@media (max-width: 540px) {
  .cookie-modal-dialog { min-width: 99vw; padding: 18px 2vw 12px 2vw; }
}

/* ===== SMOOTH ELEMENT APPEAR ===== */
.fadein {
  opacity: 0;
  animation: fadeinAnim 0.7s 0.05s forwards cubic-bezier(.58,.08,.46,1.27);
}
@keyframes fadeinAnim { from { opacity: 0;} to {opacity: 1;} }

/* ======= BUTTON ANIMATION ======= */
.btn-primary {
  transition: box-shadow 0.18s, background .16s, color .15s, transform 0.12s;
}
.btn-primary:active { transform: scale(0.97); }

/* ===== CARD MICRO-INTERACTIONS ===== */
.card:focus-within, .card:hover {
  box-shadow: 0 6px 26px 0 rgba(245,166,35,.135);
}

/* ======== ACCESSIBILITY: FOCUS VISIBILITY ======== */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ====== Z-INDEX STACKING ====== */
header { z-index: 1000; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 4000; }
.cookie-modal { z-index: 4002; }

/* ====== CLARIFICATION - NO GRID, ONLY FLEX! ====== */
/* All containers use flex and flex-wrap, no grid or columns. */
