/* --- RESET & BASE STYLES --- */
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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display: block; }
body { line-height: 1; }
ol,ul { list-style: none; }
blockquote,q { quotes: none; }
blockquote:before,blockquote:after,q:before,q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { vertical-align: middle; max-width: 100%; height: auto; border: none; }

/* --- CSS CUSTOM PROPERTIES (PALETTE) --- */
:root {
  --primary: #191C29;
  --secondary: #A88A58;
  --accent: #F5F3ED;
  --gray-100: #EBEDF2;
  --gray-200: #D7DBE6;
  --gray-300: #AEB6C3;
  --gray-400: #727B8C;
  --gray-500: #404657;
  --white: #fff;
  --black: #101215;
  --shadow: 0 2px 10px rgba(25,28,41,0.05);
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--primary);
  background: var(--accent);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, address { font-size: 1rem; line-height: 1.7; color: var(--primary); margin-bottom: 18px; }
ul, ol { padding-left: 22px; }
blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 10px;
}
cite {
  font-size: 1rem;
  color: var(--gray-500);
  font-style: normal;
  display: block;
  margin-top: 4px;
}
strong {
  font-weight: 600;
  color: var(--secondary);
}

/* --- GLOBAL CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- FLEX & SPACING --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  display: flex;
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  min-width: 220px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(25,28,41,0.06);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.main-nav > a > img {
  height: 40px;
  width: auto;
  margin-right: 30px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--primary);
  color: var(--white);
  outline: none;
}
.main-nav .btn-primary {
  margin-left: 26px;
}

/* --- BUTTONS --- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s,color 0.2s,box-shadow 0.18s,transform 0.15s;
  text-align: center;
  margin-top: 8px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(25,28,41,0.13);
  transform: translateY(-2px) scale(1.025);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 14px rgba(25,28,41,0.13);
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* --- SERVICES & CARDS --- */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: center;
}
.service-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 28px 22px;
  width: 310px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  align-items: flex-start;
  min-height: 220px;
  transition: box-shadow 0.18s,transform 0.15s;
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(25,28,41,0.14);
  transform: translateY(-2px) scale(1.024);
}
.service-card h3 {
  color: var(--primary);
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 26px 20px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 0 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s;
  border-left: 4px solid var(--secondary);
}
.service-item:hover {
  box-shadow: 0 4px 14px rgba(25,28,41,0.12);
}

/* --- TESTIMONIALS & CARDS --- */
.testimonial-card {
  background: var(--gray-100);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 20px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  position: relative;
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  color: var(--primary);
  margin: 0 0 7px 0;
}
.testimonial-card cite {
  color: var(--gray-500);
  font-size: 1rem;
  margin-left: 0;
}

/* --- FAQ --- */
.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
}
.faq-item h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
.faq-item div {
  font-size: 1rem;
  color: var(--primary);
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  background: var(--gray-200);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.02rem;
  padding: 24px 16px;
  margin-top: 10px;
  margin-bottom: 8px;
}

/* --- SHORT STORIES (EXPERIENCIAS) --- */
.short-stories {
  background: var(--accent);
  border-left: 4px solid var(--secondary);
  border-radius: 9px;
  padding: 18px 20px;
  font-size: 1.05rem;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 12px;
}

/* --- TEAM INTRO --- */
.team-intro {
  margin-top: 20px;
  background: var(--accent);
  border-left: 4px solid var(--secondary);
  padding: 15px 21px;
  border-radius: 8px;
}

/* --- ADDRESS --- */
address {
  font-style: normal;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.7;
}
address a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color 0.16s;
}
address a:hover,
address a:focus {
  color: var(--primary);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  padding: 38px 0 28px 0;
  color: var(--accent);
  font-size: 1rem;
}
footer .container {
  padding-left: 20px;
  padding-right: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer img {
  height: 34px;
}
footer address {
  color: var(--accent);
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
}
footer .footer-nav a {
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 23px;
  top: 14px;
  background: var(--primary);
  border: none;
  color: var(--white);
  font-size: 2rem;
  padding: 6px 15px;
  border-radius: 7px;
  cursor: pointer;
  z-index: 105;
  transition: background 0.18s, box-shadow 0.13s, color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  transform: translateX(100%);
  box-shadow: -4px 0 24px rgba(25,28,41,0.08);
  z-index: 300;
  padding: 32px 22px 18px 22px;
  visibility: hidden;
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.5,0.15,0.35,1), opacity 0.18s, visibility 0.10s;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--gray-200);
  border: none;
  border-radius: 8px;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 22px;
  cursor: pointer;
  padding: 3px 12px;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  padding: 12px 10px;
  color: var(--primary);
  border-radius: 7px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--primary);
  color: var(--accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 1050px) {
  .container { max-width: 970px; }
  .main-nav { max-width: 970px; }
  .service-cards { gap: 20px; }
}
@media (max-width: 900px) {
  .container, .main-nav { max-width: 90vw; }
  .service-cards, .service-list { flex-direction: column; align-items: center; }
  .service-card, .service-item { width: 100%; min-width: unset; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding-left: 10px; padding-right: 10px; }
  .main-nav ul { gap: 14px; }
  .main-nav .btn-primary { display: none; }
  .footer-nav { gap: 6px; font-size: 0.92rem; }
  .text-section { max-width: 100%; font-size: 1rem; }
  .service-card, .service-item, .card { padding: 18px 8px; font-size: 0.98rem; }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .main-nav ul { display: none; }
  .main-nav .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .container { padding-left: 3vw; padding-right: 3vw; }
  .content-wrapper, .text-section { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 0.95rem; }
  .testimonial-card { padding: 13px; }
}
@media (max-width: 400px) {
  .mobile-menu { width: 94vw; padding: 30px 5vw 10px 4vw; }
}
/* Responsive Flex Directions */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
  .service-cards, .service-list {
    flex-direction: column;
    gap: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 0;
  background: var(--gray-100);
  box-shadow: 0 -2px 14px rgba(25,28,41,0.07);
  z-index: 900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 22px 16px;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.4s, opacity 0.27s;
  opacity: 1;
  visibility: visible;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  visibility: hidden;
}
.cookie-banner p {
  color: var(--primary);
  max-width: 430px;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 7px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.13s;
}
.btn-cookie.accept {
  background: var(--primary);
  color: var(--white);
}
.btn-cookie.accept:hover { background: var(--secondary); color: var(--primary); }
.btn-cookie.reject {
  background: var(--gray-200);
  color: var(--primary);
}
.btn-cookie.reject:hover { background: var(--secondary); color: var(--white); }
.btn-cookie.settings {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 9px 19px;
}
.btn-cookie.settings:hover { background: var(--secondary); color: var(--white); }

@media (max-width: 530px) {
  .cookie-banner { flex-direction: column; gap: 16px; align-items: flex-start; padding: 16px 4vw 16px 4vw; }
  .cookie-banner p { max-width: 100%; font-size: 0.96rem; }
  .cookie-banner .cookie-actions { width: 100%; gap: 8px; flex-wrap: wrap; }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,28,41,0.38);
  opacity: 1;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 415px;
  width: 92vw;
  box-shadow: 0 4px 32px rgba(25,28,41,0.13);
  display: flex;
  flex-direction: column;
  padding: 32px 28px 22px 28px;
  position: relative;
  animation: cookie-modal-in 0.4s cubic-bezier(0.55,0.12,0.36,1);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translateY(60px) scale(0.96); }
  to { opacity:1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 13px;
}
.cookie-modal .cookie-settings-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.cookie-modal .cookie-settings-category span {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-switch {
  width: 40px;
  height: 22px;
  border-radius: 20px;
  background: var(--gray-200);
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-switch-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px; height: 18px;
  background: var(--gray-400);
  border-radius: 100%;
  transition: all 0.24s cubic-bezier(0.48,0.02,0.37,1.22);
}
.cookie-switch input:checked + .cookie-switch-slider {
  left: 20px;
  background: var(--secondary);
}
.cookie-modal .cookie-essential-label {
  color: var(--gray-500); font-size: 0.98rem;
}
.cookie-modal .btn-cookie {
  margin-top: 18px;
  width: 100%;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px; right: 19px;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.18s;
  padding: 4px 8px;
  border-radius: 7px;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--secondary);
  background: var(--gray-100);
}
@media (max-width: 420px) {
  .cookie-modal { padding: 20px 7vw 17px 7vw; }
  .cookie-modal h2 { margin-bottom: 8px; font-size: 1.09rem; }
}

/* --- MICROINTERACTIONS & TRANSITIONS --- */
a,
.btn-primary,
.btn-secondary,
.mobile-nav a,
.main-nav ul li a,
input,
.button,
.service-card,
.service-item,
.faq-item,
.card,
.cookie-modal-close {
  transition: background 0.18s, color 0.16s, box-shadow 0.15s, transform 0.13s;
}

/* --- ACCESSIBILITY & FOCUS --- */
a:focus,
.btn-primary:focus,
.btn-secondary:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.cookie-modal-close:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* --- Z-INDEX LAYERS --- */
header { z-index: 40; }
.mobile-menu { z-index: 300; }
.mobile-menu-toggle { z-index: 105; }
.cookie-banner { z-index: 900; }
.cookie-modal-overlay { z-index: 1000; }

/* --- UTILITY --- */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }