/* ==========================================================
   KAWA PERÚ
   STYLE.CSS
   ========================================================== */

/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --navy: #1d3557;
  --navy-dark: #142840;
  --blue: #5276a6;
  --blue-light: #dfe9f4;
  --blue-pale: #f3f7fb;

  --white: #ffffff;
  --text: #26384d;
  --text-soft: #64748b;
  --border: #d8e1eb;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;

  --container: 1180px;
  --radius: 18px;

  --shadow: 0 15px 45px rgba(29, 53, 87, 0.10);
  --shadow-soft: 0 8px 25px rgba(29, 53, 87, 0.07);
}


/* ==========================================================
   RESET
   ========================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 225, 235, 0.9);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* LOGO */

.logo {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);

  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.7;
}


/* NAV */

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  position: relative;

  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: var(--blue);

  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}


/* HEADER BUTTON */

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 22px;

  border: 1px solid var(--navy);
  border-radius: 30px;

  color: var(--navy);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.header-button:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;

  min-height: 700px;

  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(82, 118, 166, 0.20),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #f6f9fc 0%,
      #e6eef7 50%,
      #d8e5f2 100%
    );

  overflow: hidden;
}


/* Decoración */

.hero::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  right: -180px;
  top: -170px;

  border: 1px solid rgba(82, 118, 166, 0.20);
  border-radius: 50%;
}

.hero::after {
  content: "";

  position: absolute;

  width: 380px;
  height: 380px;

  right: -90px;
  bottom: -180px;

  border: 1px solid rgba(82, 118, 166, 0.15);
  border-radius: 50%;
}


.hero-content {
  position: relative;
  z-index: 2;

  max-width: 800px;

  padding: 110px 0;
}


/* Label */

.hero-label {
  margin-bottom: 18px;

  color: var(--blue);

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}


/* Título */

.hero h1 {
  max-width: 850px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;

  color: var(--blue);
}


/* Descripción */

.hero-description {
  max-width: 610px;

  margin-top: 32px;

  color: var(--text-soft);

  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}


/* Botones hero */

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: 38px;
}


/* ==========================================================
   BOTONES
   ========================================================== */

.primary-button,
.secondary-button,
.whatsapp-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 27px;

  border-radius: 30px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.primary-button {
  background: var(--navy);
  color: var(--white);

  box-shadow: 0 10px 25px rgba(29, 53, 87, 0.18);
}

.primary-button:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(29, 53, 87, 0.23);
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--navy);
}

.secondary-button:hover {
  border-color: var(--blue);
  background: var(--white);
  transform: translateY(-2px);
}


/* ==========================================================
   INTRO
   ========================================================== */

.intro-section {
  padding: 120px 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;

  align-items: center;
}

.section-label {
  margin-bottom: 15px;

  color: var(--blue);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.intro-title h2,
.section-heading h2,
.cta-content h2,
.contact-section h2 {
  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
}

.intro-title h2 span,
.section-heading h2 span,
.cta-content h2 span,
.contact-section h2 span {
  color: var(--blue);
}

.intro-text {
  max-width: 560px;
}

.intro-text p {
  margin-bottom: 22px;

  color: var(--text-soft);

  font-size: 17px;
  line-height: 1.9;
}

.intro-text p:last-child {
  margin-bottom: 0;
}


/* ==========================================================
   SERVICES
   ========================================================== */

.services-section {
  padding: 120px 0;

  background: var(--blue-pale);
}

.section-heading {
  max-width: 750px;

  margin-bottom: 65px;
}

.section-heading > p:last-child {
  margin-top: 22px;

  color: var(--text-soft);

  font-size: 16px;
}


/* GRID */

.services-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}


/* CARD */

.service-card {
  position: relative;

  min-height: 410px;

  padding: 42px 34px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-soft);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}


/* número */

.service-number {
  position: absolute;

  top: 25px;
  right: 28px;

  color: #d9e3ed;

  font-family: var(--serif);
  font-size: 42px;
}


/* icono */

.service-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 30px;

  border-radius: 50%;

  background: var(--blue-light);

  color: var(--blue);

  font-size: 26px;
}


/* título */

.service-card h3 {
  margin-bottom: 17px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.1;
}


/* texto */

.service-card p {
  margin-bottom: 28px;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.8;
}


/* enlace */

.service-card a {
  color: var(--blue);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ==========================================================
   PROCESO
   ========================================================== */

.process-section {
  padding: 120px 0;

  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 55px;
}

.process-item {
  position: relative;

  padding-top: 25px;

  border-top: 1px solid var(--border);
}

.process-item span {
  display: block;

  margin-bottom: 25px;

  color: var(--blue);

  font-family: var(--serif);
  font-size: 30px;
}

.process-item h3 {
  margin-bottom: 14px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.process-item p {
  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.85;
}


/* ==========================================================
   CTA
   ========================================================== */

.cta-section {
  position: relative;

  padding: 120px 0;

  background:
    linear-gradient(
      135deg,
      var(--navy-dark),
      var(--navy)
    );

  overflow: hidden;
}

.cta-section::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -180px;
  top: -250px;

  border: 1px solid rgba(255, 255, 255, 0.10);

  border-radius: 50%;
}

.cta-section::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  left: -150px;
  bottom: -180px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;

  max-width: 750px;

  text-align: center;
}

.cta-content .section-label {
  color: #b7cce2;
}

.cta-content h2 {
  color: var(--white);
}

.cta-content h2 span {
  color: #b7cce2;
}

.cta-content > p:not(.section-label) {
  max-width: 580px;

  margin: 25px auto 35px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 16px;
  line-height: 1.8;
}

.cta-content .primary-button {
  background: var(--white);
  color: var(--navy);
}

.cta-content .primary-button:hover {
  background: var(--blue-light);
}


/* ==========================================================
   CONTACTO
   ========================================================== */

.contact-section {
  padding: 120px 0;

  background: var(--blue-pale);
}

.contact-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 70px;

  align-items: start;
}


/* Información */

.contact-info {
  display: flex;
  flex-direction: column;

  gap: 25px;
}


/* Item */

.contact-item {
  display: flex;

  align-items: flex-start;

  gap: 18px;
}

.contact-icon {
  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--white);

  color: var(--blue);

  font-size: 18px;

  box-shadow: var(--shadow-soft);
}

.contact-item small {
  display: block;

  margin-bottom: 3px;

  color: var(--text-soft);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item p {
  color: var(--navy);

  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.contact-item a:hover {
  color: var(--blue);
}


/* WhatsApp */

.whatsapp-button {
  align-self: flex-start;

  margin-top: 12px;

  background: var(--navy);
  color: var(--white);
}

.whatsapp-button:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}


/* ==========================================================
   MAPA
   ========================================================== */

.map-wrapper {
  width: 100%;

  padding: 10px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;

  width: 100%;
  min-height: 430px;

  border: 0;

  border-radius: 11px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  padding: 55px 0;

  background: var(--navy-dark);

  color: var(--white);
}

.footer-inner {
  display: grid;

  grid-template-columns: 1.2fr 1fr 1fr;

  gap: 40px;

  align-items: center;
}


/* Marca */

.footer-brand strong {
  display: block;

  margin-bottom: 7px;

  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.10em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.60);

  font-size: 13px;
}


/* Contacto footer */

.footer-contact {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.78);

  font-size: 13px;
}

.footer-contact a:hover {
  color: var(--white);
}


/* Copyright */

.footer-copy {
  text-align: right;
}

.footer-copy p {
  color: rgba(255, 255, 255, 0.45);

  font-size: 12px;
}


/* ==========================================================
   ANIMACIONES
   ========================================================== */

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.hero-content {
  animation: fadeUp 0.8s ease both;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 950px) {

  .main-nav {
    gap: 20px;
  }

  .header-button {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(55px, 9vw, 82px);
  }

  .intro-grid {
    gap: 45px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper iframe {
    min-height: 400px;
  }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 700px) {

  .container {
    width: min(100% - 34px, 1180px);
  }


  /* HEADER */

  .header-inner {
    min-height: 70px;
  }

  .logo {
    font-size: 32px;
  }

  .main-nav {
    display: none;
  }


  /* HERO */

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 90px 0;
  }

  .hero-label {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 78px);
    line-height: 0.95;
  }

  .hero-description {
    margin-top: 25px;

    font-size: 15px;
    line-height: 1.8;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;

    margin-top: 30px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }


  /* INTRO */

  .intro-section,
  .services-section,
  .process-section,
  .contact-section {
    padding: 80px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .intro-title h2,
  .section-heading h2,
  .cta-content h2,
  .contact-section h2 {
    font-size: 48px;
  }

  .intro-text p {
    font-size: 15px;
  }


  /* SERVICES */

  .section-heading {
    margin-bottom: 45px;
  }

  .services-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .service-card {
    min-height: auto;

    padding: 35px 28px;
  }

  .service-card:last-child {
    grid-column: auto;

    max-width: none;
  }

  .service-card h3 {
    font-size: 29px;
  }


  /* PROCESO */

  .process-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }


  /* CTA */

  .cta-section {
    padding: 90px 0;
  }

  .cta-content > p:not(.section-label) {
    font-size: 15px;
  }


  /* CONTACTO */

  .contact-grid {
    gap: 45px;
  }

  .contact-item a,
  .contact-item p {
    font-size: 14px;
  }

  .map-wrapper {
    padding: 6px;
  }

  .map-wrapper iframe {
    min-height: 340px;
  }

  .whatsapp-button {
    width: 100%;
  }


  /* FOOTER */

  .site-footer {
    padding: 45px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .footer-copy {
    text-align: left;
  }

}


/* ==========================================================
   MÓVIL PEQUEÑO
   ========================================================== */

@media (max-width: 400px) {

  .container {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .intro-title h2,
  .section-heading h2,
  .cta-content h2,
  .contact-section h2 {
    font-size: 42px;
  }

  .service-card {
    padding: 30px 24px;
  }

}