:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --primary: #1c3764;
  --primary-soft: #2c4a85;
  --secondary: #b9831f;
  --secondary-soft: #d5b86e;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}

img {
  max-width: 100%;
  display: block;
}

.contact-content a {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-top: 0.35rem;
}

.contact-content a:first-of-type {
  margin-top: 0.5rem;
}

.contact-content a:hover,
.contact-content a:focus-visible {
  text-decoration: underline;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.9);
  color: white;
  background: rgba(255,255,255,0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 70vh;
  padding-block: clamp(1.25rem, 3vh, 2.25rem);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(28,55,100,0.8), rgba(49,71,121,0.68)), url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.82);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,55,100,0.3), rgba(28,55,100,0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(1.25rem, 1fr)
    minmax(0, 34rem)
    minmax(0, min(40rem, 42vw))
    minmax(1.25rem, 1fr);
  align-items: center;
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: 1.5rem;
  width: 100%;
  min-height: min(680px, 72vh);
  /* Reserva inferior (.quick-services); padding superior equilibra el bloque en altura */
  padding-top: clamp(1.5rem, 2.5vw + 0.5rem, 2.75rem);
  padding-bottom: clamp(5rem, 6vw + 3rem, 8rem);
}

.hero-text {
  grid-column: 2;
  justify-self: end;
  width: 100%;
  max-width: 34rem;
}

.hero-woman {
  grid-column: 3;
  justify-self: start;
  width: 100%;
  max-width: min(40rem, 42vw);
  min-height: 420px;
  border-radius: 36px;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 28px 80px rgba(15,23,42,0.35);
  text-align: -webkit-center;
  overflow: hidden;
}

.hero-woman img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.hero h1 .eyebrow {
  display: block;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: 0;
}

.hero-copy {
  margin: 1.5rem 0 2rem;
  max-width: 44rem;
  color: rgba(255,255,255,0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 0.75rem;
}

.quick-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.quick-services article {
  background: white;
  border-radius: 24px;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}

.quick-services .icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(31,41,55,0.06);
  font-size: 1.4rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0;
}

.about-image {
  min-height: 420px;
  border-radius: 32px;
  background-image: url('Resources/talma1.jpg');
  background-size: cover;
  background-position: center;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 2px;
  display: inline-block;
  text-align: center;
}

.section-label .flag {
  margin-left: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.section-label .flag svg {
  display: block;
  width: 1.1em;
  height: auto;
}

.about-text h2 {
  margin: 0;
  font-size: 2.6rem;
}

.subtitle {
  margin: 0.75rem 0 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

.services-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  border-radius: 32px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.service-card.light {
  background: white;
}

.service-card.dark {
  background: var(--primary);
  color: white;
}

.service-card.dark .section-label,
.service-card.dark li,
.service-card.dark p,
.service-card.dark .btn-outline {
  color: white;
}

.service-card.dark h3 {
  color: white;
  text-align: center;
}

.service-card.dark .service-column {
  color: var(--text);
}

.service-card.dark .service-column-header strong,
.service-card.dark .service-column li {
  color: var(--text);
}

#servicios-peru h3 {
  text-align: center;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.service-column {
  background: rgba(248, 249, 250, 0.9);
  padding: 1.25rem;
  border-radius: 22px;
}

.service-column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-column-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(44, 74, 133, 0.1);
  color: var(--primary);
}

.service-column-header strong {
  font-size: 1rem;
}

.service-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-column li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.service-column li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  top: 0;
}

.service-card li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.service-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  top: 0;
}

.service-card.dark li::before {
  color: #f6d48c;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.values article {
  background: white;
  padding: 1.8rem;
  border-radius: 24px;
  border: 1px solid rgba(229,231,235,0.9);
}

.values h4 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.testimonials {
  padding: 3rem 0;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.testimonial {
  display: none;
  padding: 2rem;
  background: white;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
}

.testimonial.active {
  display: block;
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.8rem;
}

.author strong {
  display: block;
  font-size: 1rem;
}

.author span {
  color: var(--muted);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--primary);
}

.blog {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.blog-header {
  grid-column: 1;
}

.blog-grid {
  grid-column: 1;
}

.blog-action {
  grid-column: 1;
}

.blog-header {
  text-align: center;
  margin-bottom: 1rem;
}

.blog-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2.2rem;
  color: var(--primary);
}

.blog-header p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-grid article {
  background: white;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}

.blog-grid article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-grid article h3 {
  margin: 1rem;
  font-size: 1.15rem;
}

.link-inline {
  display: inline-block;
  margin: 0 1rem 1.1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.newsletter-card {
  grid-column: 2;
  grid-row: 1 / 4;
  background: var(--primary);
  color: white;
  border-radius: 32px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: fit-content;
}

.newsletter-card h3 {
  margin-top: 0;
}

.newsletter-card p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.newsletter-card form {
  display: grid;
  gap: 1rem;
}

.newsletter-card input {
  border: none;
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
}

.contact-block {
  margin-bottom: 3rem;
}

.contact-section-cta {
  text-align: center;
  margin: 0 0 1.5rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.contact-item {
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(229,231,235,0.9);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  display: inline-flex;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-item span:not(.contact-icon) {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.contact-item strong {
  word-break: break-word;
  overflow-wrap: break-word;
}

.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.88);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.8fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-top h4 {
  margin-bottom: 1rem;
}

.footer-links a,
.social-icons a,
.footer-bottom p {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  text-align: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  color: white;
}

.social-icons a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.footer-bottom {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
  .hero-text,
  .hero-woman {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 36rem;
  }
  .hero-woman {
    min-height: 300px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: center;
    align-content: center;
    justify-items: center;
    padding-top: clamp(1.25rem, 2vh + 0.5rem, 2rem);
    padding-bottom: clamp(4.5rem, 8vw + 1rem, 6.5rem);
    gap: 1.75rem;
  }
  .quick-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -1.25rem;
  }
  .about,
  .services-split,
  .values,
  .contact-info,
  .blog {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav {
    justify-content: center;
  }
  .hero {
    min-height: 0;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-card {
    grid-column: 1;
    grid-row: auto;
  }
  .blog-grid article h3 {
    margin: 1rem 0.9rem;
  }
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 700px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding-bottom: clamp(4.5rem, 12vw + 0.5rem, 6.25rem);
  }
  .hero-text {
    width: 100%;
    max-width: 100%;
  }
  .hero-copy {
    margin: 1.1rem 0 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 1rem;
  }
  .quick-services {
    margin-top: -0.75rem;
  }
  .hero-woman {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
  }
  .hero-woman img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }
  .hero-content {
    padding-bottom: 5rem;
  }
}

/* Página de agenda / Formspree */
.page-booking {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  min-height: calc(100vh - 5rem);
}

.page-booking-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.page-booking-header h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--primary);
  line-height: 1.1;
}

.page-booking-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.booking-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 32px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(28, 55, 100, 0.08);
}

.booking-form {
  display: grid;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
  border-color: var(--primary-soft);
}

.booking-form .btn[type="submit"] {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.booking-back {
  text-align: center;
  margin-top: 2rem;
}

.booking-back a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.booking-back a:hover,
.booking-back a:focus-visible {
  text-decoration: underline;
}

.page-thanks {
  display: flex;
  align-items: center;
}

.thanks-card {
  text-align: center;
}

.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(185, 131, 31, 0.15);
  color: var(--secondary);
  font-size: 1.75rem;
  font-weight: 800;
}

.thanks-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary);
}

.thanks-card p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.thanks-card .btn {
  display: inline-flex;
}

/* Página de contacto */
.page-contact {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.contact-details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: 0 12px 40px rgba(28, 55, 100, 0.06);
}

.contact-details-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--primary);
}

.contact-details-card h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1rem;
  color: var(--primary);
}

.contact-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-details-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-details-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.contact-details-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-details-list a:hover,
.contact-details-list a:focus-visible {
  text-decoration: underline;
}

.contact-details-list span:not(.contact-details-label) {
  color: var(--text);
  line-height: 1.5;
}

.contact-social {
  margin-top: 0.25rem;
}

.contact-social a {
  color: var(--primary);
  background: rgba(28, 55, 100, 0.08);
  border-radius: 50%;
}

.contact-agenda-note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-agenda-note a {
  color: var(--primary);
  font-weight: 600;
}

.contact-form-card {
  max-width: none;
  margin: 0;
}

.contact-form-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--primary);
}

.contact-form-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Story / Mi Historia Section */
.story {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(28,55,100,0.05) 0%, rgba(185,131,31,0.05) 100%);
  border-radius: 24px;
  margin: 2rem auto;
  max-width: 900px;
}

.story-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-content .section-label {
  margin-bottom: 1rem;
}

.story-content h2 {
  margin: 0 0 2rem;
  font-size: 2.2rem;
  color: var(--primary);
}

.story-content p {
  margin: 1rem 0;
  line-height: 1.8;
  color: var(--text);
  font-size: 1.05rem;
  max-width: 700px;
}
