/* ==================== CSS RESET & NORMALIZE ==================== */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #19476A;
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  color: inherit;
}
:focus {
  outline: 2px solid #5DB5D7;
  outline-offset: 2px;
}

/* ==================== VARIABLES (with fallbacks) ==================== */
:root {
  --color-primary: #19476A;
  --color-secondary: #5DB5D7;
  --color-accent: #F8E9B1;
  --color-bg: #fff;
  --color-text: #19476A;
  --color-text-light: #567899;
  --color-border: #E3ECF3;
  --color-shadow: rgba(25,71,106,0.06);
  --radius: 12px;
  --radius-small: 7px;
  --shadow-card: 0 2px 24px var(--color-shadow);
  --shadow-hover: 0 6px 32px rgba(25,71,106,0.09);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.8px;
}
h1 {
  font-size: 2.25rem;   /* 36px */
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;    /* 24px */
  line-height: 1.15;
  margin-bottom: 17px;
}
h3 {
  font-size: 1.25rem;   /* 20px */
  line-height: 1.18;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, address {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 13px;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}
.text-section {
  margin-bottom: 20px;
}

/* ==================== LAYOUT PATTERNS ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--color-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: #fff;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 300px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: #F7FAFC;
  padding: 72px 0 46px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 48px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-bottom: 30px;
}

/* ==================== HEADER ==================== */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 8px;
  border-radius: var(--radius-small);
  transition: background 0.14s, color 0.12s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  padding: 13px 38px;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-top: 5px;
  transition: background 0.16s, box-shadow 0.2s, color 0.15s, transform 0.14s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 28px rgba(85, 181, 215, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-small);
  font-weight: 600;
  padding: 10px 30px;
  transition: color 0.13s, background 0.13s, border-color 0.13s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: #fff;
}

/* ==================== FEATURES & LISTS ==================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.09rem;
  color: var(--color-primary);
  background: #F3F8FA;
  border-radius: var(--radius-small);
  padding: 13px 22px;
  margin-bottom: 8px;
  flex: 1 1 260px;
}
.feature-grid img {
  width: 32px;
  height: 32px;
}

ul, ol {
  margin: 0 0 16px 0;
  padding: 0;
}
ul li, ol li {
  margin-bottom: 9px;
  font-size: 1rem;
  color: var(--color-text-light);
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 7px;
  flex: 2;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: 600;
}
.testimonial-card div {
  color: var(--color-text-light);
  font-size: 0.98rem;
}
.testimonial-card img[alt*="Estrella"] {
  width: 22px;
  height: 22px;
  display: inline-block;
  filter: grayscale(0) brightness(1.1);
  margin-right: 2px;
}

/* ==================== FOOTER ==================== */
footer {
  background: #FAFCFE;
  padding: 36px 0 14px 0;
  border-top: 1.5px solid var(--color-border);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-right: 4px;
  opacity: 0.85;
  transition: opacity 0.11s;
}
.footer-nav a:hover {
  opacity: 1;
}
address {
  font-style: normal;
  color: var(--color-text-light);
  font-size: 0.99rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.68;
}
address img {
  width: 20px;
  height: 20px;
  margin: -2px 3px 0 0;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 112;
  background: #fff;
  color: var(--color-primary);
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  width: 44px;
  height: 44px;
  font-size: 1.76rem;
  box-shadow: 0 2px 10px rgba(93,181,215,0.11);
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.18s, background 0.12s;
  cursor: pointer;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(25,71,106,0.94);
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.27s cubic-bezier(.39,.62,.46,1.14);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.25rem;
  border: none;
  align-self: flex-end;
  margin: 24px 26px 12px 0;
  cursor: pointer;
  transition: color 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: 20px 36px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.2px;
  padding: 10px 12px;
  border-radius: var(--radius-small);
  width: 100%;
  transition: background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Show/hide nav for responsive */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ==================== RESPONSIVE LAYOUTS ==================== */
@media (max-width: 900px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid li {
    flex: 1 1 180px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 32px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .footer-nav {
    gap: 12px;
  }
  .feature-grid {
    gap: 12px 0;
  }
  .content-grid, .card-container {
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .footer-nav {
    flex-direction: column;
  }
}

/* ==================== WHITE SPACE & SPACING ==================== */
.section, .card, .testimonial-card, .content-wrapper, .feature-grid, .card-container, .content-grid, .footer-nav, .text-section {
  margin-bottom: 0;
}
.content-wrapper > *:not(:last-child),
.card-container > *:not(:last-child),
.feature-grid > *:not(:last-child),
.content-grid > *:not(:last-child),
.footer-nav > *:not(:last-child),
.text-section:not(:last-child) {
  margin-bottom: 20px;
}
.section:not(:last-child),
.card:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 60px;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 18px rgba(25,71,106,0.07);
  padding: 20px 22px;
  z-index: 199;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  animation: cookie-fadein 0.56s cubic-bezier(.34,.83,.44,1.11);
}
.cookie-banner__text {
  color: var(--color-text);
  font-size: 1rem;
  flex: 2 1 220px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  padding: 10px 22px;
  font-size: 0.99rem;
  margin-top: 0;
}
.cookie-banner__settings {
  background: transparent;
  color: var(--color-secondary);
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-small);
  transition: background 0.12s, color 0.13s;
}
.cookie-banner__settings:hover {
  background: #F4FAFD;
  color: var(--color-primary);
}
@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 14px 6px;
  }
}
@keyframes cookie-fadein {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(25,71,106,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 202;
  animation: fadein 0.3s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 430px;
  width: 98vw;
  box-shadow: 0 6px 40px 0 rgba(25,71,106,0.09); 
  padding: 40px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-bounce 0.37s cubic-bezier(.2,1.44,.38,1.08);
}
.cookie-modal h2 {
  margin-bottom: 10px;
}
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 13px;
  margin-bottom: 14px;
}
.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 19px;
  height: 19px;
}
.cookie-category--essential {
  opacity: 0.77;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
@keyframes modal-bounce {
  0%{ transform:scale(0.88) translateY(32px); opacity:0; }
  70%{ transform:scale(1.03) translateY(-11px); opacity:1; }
  100%{ transform:scale(1) translateY(0); opacity:1; }
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== UTILITIES ==================== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ==================== ADDITIONAL INTERACTIONS ==================== */
a { transition: color 0.15s, background 0.14s; }
a:active { color: var(--color-secondary); }

.btn-primary:active { transform: scale(0.97); }

/* ==================== SOCIAL ICONS ==================== */
.text-section a img[alt*="Facebook"],
.text-section a img[alt*="Instagram"],
.text-section a img[alt*="LinkedIn"] {
  width: 32px;
  height: 32px;
  display: inline-block;
  margin-right: 12px;
  filter: grayscale(0.3) brightness(1.15);
  opacity: 0.85;
  transition: filter 0.14s, opacity 0.12s;
}
.text-section a:focus img,
.text-section a:hover img {
  filter: none;
  opacity: 1;
}

/* ==================== MISC MEDIA QUERIES ==================== */
@media (max-width: 480px) {
  .hero h1, h1 {
    font-size: 1.1rem;
  }
  .card, .testimonial-card {
    padding: 12px 5px;
  }
  .cookie-modal {
    padding: 21px 4vw 16px 4vw;
  }
}

/* ==================== END OF STYLES ==================== */