@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --header-height: 150px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #2a2040;
  background: #ffffff;
  line-height: 1.5;
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
  background-image: url("img/fondo.jpg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.menu a,
.btn-contacto,
h1,
h2,
.titulo-areas,
.titulo-metodo,
.boton {
  font-family: 'Cormorant Garamond', serif;
}

.header {
  background: #f8f8f8;
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  max-height: var(--header-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 20px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 80px;
}

.menu a {
  text-decoration: none;
  color: #2b2140;
  font-size: 24px;
  font-weight: 600;
}

.btn-contacto {
  background: #41613b;
  color: #fff8ef;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-contacto:hover {
  background: #d9b7a3;
  opacity: 1;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #2b2140;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.pantalla {
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

.hero-transparente {
  background: transparent;
}

.hero-superior-derecha {
  position: absolute;
  top: 100px;
  right: 150px;
  text-align: right;
}

.hero-superior-derecha h1 {
  font-size: clamp(90px, 10vw, 130px);
  line-height: 1;
  color: #2b2140;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.12);
  max-width: 900px;
}

.hero-inferior-izquierda {
  position: absolute;
  left: 70px;
  bottom: 90px;
  max-width: 520px;
  padding: 34px 38px;
  background: rgba(248, 242, 235, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  color: #2b2140;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.hero-inferior-izquierda .nombre {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-inferior-izquierda p {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
}

/* small overlay so text reads better on the image */
.hero-transparente::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 248, 240, 0.04) 0%,
    rgba(255, 248, 240, 0.01) 40%,
    rgba(43, 33, 64, 0.04) 100%
  );
  pointer-events: none;
}

/* default section layout */
.seccion {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.contenido-seccion {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  max-width: 1200px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.seccion h2 {
  font-size: 56px;
  margin-bottom: 20px;
  text-align: center;
}

/* about section */
.sobre-mi-borde-a-borde {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
}

.sobre-mi-img-full {
  width: 100%;
  height: 100%;
}

.sobre-mi-img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-mi-texto-full {
  background-color: #efe9e1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.sobre-mi-texto-full h2 {
  text-align: left;
  font-size: 56px;
  margin-bottom: 30px;
  color: #2b2140;
}

.sobre-mi-texto-full .subtitulo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #33274a;
}

.sobre-mi-texto-full p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a3e5d;
  margin-bottom: 15px;
}

/* areas section */
.seccion-areas {
  background: linear-gradient(180deg, #7c5c55 0%, #94776e 50%, #876b63 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.contenido-areas {
  width: 100%;
  max-width: 1600px;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
}

.titulo-areas {
  font-size: 64px;
  color: #ffffff;
  text-align: left;
  margin-bottom: 50px;
  font-weight: 500;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  align-items: start;
}

.area-columna {
  display: flex;
  flex-direction: column;
}

.area-img {
  width: 100%;
  aspect-ratio: 4/3;
  margin-bottom: 25px;
  overflow: hidden;
}

.area-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.area-columna h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.3;
  min-height: 60px;
}

.area-columna p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* method section */
.seccion-metodo {
  background-image: url("img/fondo-madera.jpg");
  background-color: #d8c8b8;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 80px 40px;
}

.contenido-metodo {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titulo-metodo {
  font-size: 64px;
  color: #000000;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

/* grid with the circles and the chameleon in the middle */
.metodo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* circle positions */
.item-1 { grid-column: 1; grid-row: 1; margin-top: 40px; }
.item-2 { grid-column: 3; grid-row: 1; margin-top: 40px; }
.item-5 { grid-column: 1; grid-row: 2; }
.item-3 { grid-column: 3; grid-row: 2; }
.item-4 { grid-column: 2; grid-row: 3; margin-top: -110px; }

/* center illustration */
.item-centro {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vector-camaleon img {
  width: 280px;
  height: auto;
  transform: scale(1.2);
}

/* circle card */
.circulo-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.circulo-wrapper:hover {
  transform: scale(1.03);
}

.vector-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.vector-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.texto-interno {
  position: relative;
  z-index: 2;
  padding: 40px;
  text-align: center;
}

.texto-interno h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.texto-interno p {
  font-size: 12px;
  line-height: 1.4;
  color: #0f0c16;
}

.vector-camaleon {
  width: 100%;
  max-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seccion-testimonios {
    background: linear-gradient(to right, #9c7b66, #d0b2a0);
    padding: 100px 20px;
    text-align: center;
    overflow: hidden; 
}

.carrusel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.comillas-especiales {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 120px;
    color: #2c1e16;
    display: block;
    line-height: 1;
    margin-bottom: -20px; 
    opacity: 0.9;
}

.carrusel-window {
    overflow: hidden;
    width: 100%;
}

.carrusel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    align-items: stretch; 
}

.testimonio {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    min-height: 250px;       
}

.texto-wrapper {
    position: relative;
    padding: 0 50px; 
    display: inline-block;
}

.texto-wrapper::before {
    content: "“";
    position: absolute;
    left: -10px;
    top: -20px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #2c1e16;
    line-height: 1;
}

.texto-wrapper::after {
    content: "”";
    position: absolute;
    right: -10px;
    bottom: 0px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #2c1e16;
    line-height: 1;
}

.texto-testimonio {
    font-size: 24px;
    color: #1a1a1a;
    max-width: 700px;
    margin: 0;
    line-height: 1.6;
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 30px;
    color: #2c1e16;
    cursor: pointer;
    z-index: 10;
}
.prev { left: -40px; }
.next { right: -40px; }

.dots-container {
    margin-top: 30px;
    position: relative;
    z-index: 20; 
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(44, 30, 22, 0.3); 
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 30, 22, 0.1); 
    border-radius: 50%;
}

.dot.active {
    background-color: #2c1e16; 
    transform: scale(1.3);
    opacity: 1;
}


.seccion-faq {
    background-color: #fcfcfc;
    padding: 100px 0;
}

.faq-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start; 
    gap: 60px; 
    padding: 0 40px;
}


.faq-izquierda {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-titulo-wrapper {
    padding: 20px 0;
}

.faq-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    color: #2b2140; 
    line-height: 1.1;
    text-align: left; 
    font-weight: 700;
}

.faq-foto {
    width: 100%;
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.faq-foto img {
    width: 100%;
    height: auto;
    display: block;
}

.faq-derecha {
    flex: 1;
    background-color: #efe9e1; 
    padding: 60px;
    border-radius: 12px;
}

.faq-acordeon {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.faq-item {
    background-color: transparent; 
    border-bottom: 1px solid rgba(44, 30, 22, 0.1); 
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-pregunta {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c1e16; 
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 0;
}

.faq-pregunta::-webkit-details-marker {
    display: none;
}

.faq-flecha {
    font-size: 20px;
    transition: transform 0.3s ease; 
    color: rgba(44, 30, 22, 0.5);
}

.faq-respuesta {
    padding: 20px 0 10px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #4a3e5d;
    line-height: 1.7;
}

details[open] .faq-pregunta {
    color: #2b2140; 
}

details[open] .faq-flecha {
    transform: rotate(180deg); 
    color: #2b2140;
}

.footer {
    background-color: #f8f8f8;
    padding: 100px 40px 40px 40px;
    color: #2b2140;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

.footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-info h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-info p {
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
}

.footer-redes {
    display: flex;
    gap: 20px; 
    margin-top: 20px;
}

.red-social {
    color: #2b2140; 
    font-size: 26px; 
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.red-social:hover {
    opacity: 0.7;
    transform: translateY(-3px); 
}

.fa-linkedin-in {
    font-weight: 400;
}

.footer-form {
    flex: 1.5;
}

.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    margin-bottom: 30px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 10px;
}

.form-group input, 
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #2b2140; 
    padding: 10px 0;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.btn-enviar {
    background: transparent;
    border: none;
    color: #2b2140;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    float: right;
    padding: 10px 20px;
    transition: opacity 0.3s;
}

.btn-enviar:hover {
    opacity: 0.6;
}

.footer-bottom {
    margin-top: 80px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(43, 33, 64, 0.1);
    padding-top: 40px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom: 2px solid #2b2140; 
    transition: all 0.3s ease;
}

.form-group input:invalid, 
.form-group textarea:invalid {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5); 
    box-shadow: none; 
}

.dev-credit {
    font-size: 12px; 
    opacity: 0.7;    
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.dev-credit a {
    color: #2b2140; 
    text-decoration: none;
    font-weight: 600;
}

.dev-credit a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* =========================================
   MEDIA QUERIES 
   ========================================= */

@media (max-width: 600px) {
    .faq-titulo {
        font-size: 40px;
    }
    .faq-derecha {
        padding: 30px 20px;
    }
    .faq-pregunta {
        font-size: 17px;
    }
}

/* desktop a bit smaller */
@media (max-width: 1400px) {
  .menu {
    gap: 50px;
  }

  .menu a {
    font-size: 21px;
  }

  .hero-superior-derecha {
    top: 80px;
    right: 90px;
  }

  .hero-superior-derecha h1 {
    font-size: 68px;
    max-width: 700px;
    margin-left: auto;
  }

  .hero-inferior-izquierda {
    left: 50px;
    bottom: 70px;
    max-width: 460px;
    padding: 28px 30px;
  }

  .hero-inferior-izquierda .nombre {
    font-size: 32px;
  }

  .hero-inferior-izquierda p {
    font-size: 18px;
  }

  .areas-grid {
    gap: 15px;
  }
}

/* tablet */
@media (max-width: 1100px) {
  :root {
    --header-height: 150px;
  }

  .header-container {
    padding: 0 24px;
    gap: 20px;
  }

  .hero-superior-derecha h1 {
    font-size: 300px;
  }

  .logo {
    width: 180px;
    height: 180px;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    padding: 20px;
  }

  .btn-contacto {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 340px;
    height: 100vh;
    background-color: #fcfcfc;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 1000;
    padding-top: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .menu {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
  }

  .nav-menu .menu a {
    font-size: 24px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-superior-derecha {
    top: 70px;
    right: 50px;
  }

  .hero-superior-derecha h1 {
    font-size: 52px;
    max-width: 560px;
  }

  .hero-inferior-izquierda {
    left: 40px;
    bottom: 50px;
    max-width: 400px;
    padding: 24px 26px;
  }

  .hero-inferior-izquierda .nombre {
    font-size: 28px;
  }

  .hero-inferior-izquierda p {
    font-size: 16px;
    line-height: 1.45;
  }

  .sobre-mi-texto-full {
    padding: 50px 40px;
  }

  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .titulo-areas {
    font-size: 50px;
    margin-bottom: 40px;
  }

  .metodo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    row-gap: 40px;
  }

  .item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: center;
    margin-top: 0;
  }

  .item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: center;
    margin-top: 0;
  }

  .item-centro {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    justify-self: center;
    margin: 30px 0;
  }

  .item-5 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    justify-self: center;
    margin-top: 0;
  }

  .item-3 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    justify-self: center;
    margin-top: 0;
  }

  .item-4 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    justify-self: center;
    margin-top: 0;
  }

  .faq-container {
    flex-direction: column;
    gap: 40px;
  }

  .faq-titulo {
    font-size: 50px;
    text-align: center;
  }

  .faq-derecha {
    padding: 40px;
  }
}

/* mobile */
@media (max-width: 900px) {
  :root {
    --header-height: 300px;
  }

  main {
    background-size: cover;
  }

  .header-container {
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    width: 150px;
    height: 150px;
    margin-top: 0;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .menu {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu a {
    font-size: 17px;
  }

  .hero-superior-derecha {
    top: 60px;
    right: 30px;
    left: 30px;
    text-align: center;
  }

  .hero-superior-derecha h1 {
    font-size: 40px;
    max-width: none;
    margin: 0 auto;
  }

  .hero-inferior-izquierda {
    left: 30px;
    right: 30px;
    bottom: 60px;
    max-width: none;
    padding: 22px 22px;
  }

  .hero-inferior-izquierda .nombre {
    font-size: 24px;
  }

  .sobre-mi-borde-a-borde {
    grid-template-columns: 1fr;
  }

  .sobre-mi-img-full {
    height: 400px;
  }

  .sobre-mi-texto-full {
    padding: 50px 30px;
  }

  .contenido-areas {
    padding: 50px 20px;
  }

  .titulo-areas {
    font-size: 40px;
    text-align: center;
    margin-bottom: 30px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .area-img {
    aspect-ratio: 16/9;
    margin-bottom: 15px;
  }

  .area-columna h3 {
    min-height: auto;
  }

  .seccion-metodo {
    padding: 50px 20px;
  }

  .titulo-metodo {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .metodo-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .item-1,
  .item-2,
  .item-3,
  .item-4,
  .item-5,
  .item-centro {
    grid-column: 1 / 2;
    grid-row: auto;
    margin-top: 0;
  }

  .item-centro {
    order: -1;
    margin-bottom: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 60px;
  }

  .form-row {
    flex-direction: column;
    gap: 30px;
  }
}