/*sn-pro {
  font-family: "SN Pro", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
  

.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
@keyframes enderezarEsquinas {
  from {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  to {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
}*/

* {
  box-sizing: border-box;
}

body {
  font-family: "SN Pro", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  background-color: #859efa;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  min-height: 100dvh;
}

body.no-scroll {
  overflow: hidden;
}

section {
  margin: 0;
  background: rgba(255, 255, 255, 0.1);

  overflow: hidden;

  box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 0.1);

  padding: 20px;
  height: 85vh;

  scroll-snap-align: start;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

h3 {
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
}

.marco {
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 20px;
  overflow: hidden;
}

.contenido {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;

  scrollbar-width: 8px;
  -ms-overflow-style: none;
  scroll-snap-type: y mandatory;
}

.contenido::-webkit-scrollbar-thumb {
  background: #547afe;
  border-radius: 10px;
}

.contenido::-webkit-scrollbar-track {
  background: transparent;
}

#inicio {
  background-color: #e5ebeb;
}

#servicios {
  background-color: #f5f7f9;
}

#proyectos {
  background-color: #e5ebeb;
  background-image: radial-gradient(rgba(9, 27, 57, 0.3) 0.8px, #ffffff 0.8px);
  background-size: 20px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

#sobre-mi {
  background-color: white;
  position: relative;
  margin: 0;
  padding: 0;
}

#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #859efa;
}

nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.menu li {
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.menu li:hover {
  transform: scale(1.05);
}

.boton-sin-estilo,
.imagen-mobile {
  display: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-text {
  flex: 0.4;

  margin: 20px;
}

.hero-img {
  flex: 0.6;
}

.hero-img img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

/*
}

.hero-img img {
  height: 69vh;
  margin: 10px;
  border-radius: 20px;
}*/

.hero-content h1 {
  font-size: 48px;
  color: black;
  /*margin-top: 40px;*/
  padding: 8px;
}

.azul {
  color: #547afe;
}

.hero-text .cuadrado-redondeado {
  background-color: #547afe;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.hero-text .cuadrado-redondeado:hover {
  background-color: #4a69e2;
  transform: scale(1.05);
}

.cuadrado-redondeado {
  padding: 10px 24px;
  border-radius: 12px;
  font-family: sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cuadrado-redondeado:hover {
  background-color: #000000;
  color: white;
}

nav .cuadrado-redondeado {
  background-color: transparent;
  color: #000000;
  border: 1.5px solid #000000;
}

#servicios h1 {
  text-align: center;
  padding-top: 40px;
}

.contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  padding: 0px 32px;
}

.tarjeta {
  background-color: white;
  border-radius: 20px;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.icono-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.tarjeta-rosa .icono-wrapper {
  background-color: #ffebee;
  color: #ff6b8b;
}

.tarjeta-verde .icono-wrapper {
  background-color: #e6f4ea;
  color: #10b981;
}

.tarjeta-azul .icono-wrapper {
  background-color: #eef2ff;
  color: #859efa;
}

.contenido-tarjeta h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-texto);
  margin-bottom: 10px;
  line-height: 1.3;
}

.contenido-tarjeta p {
  color: var(--color-subtexto);
  line-height: 1.5;
  margin-bottom: 24px;
}

.cta-contenedor {
  text-align: center;
}

.btn-principal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ff8c66;
  color: #fff0eb;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.btn-principal:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.encabezado-proyectos {
  text-align: center;
  width: 60%;
}

.encabezado-proyectos h1 {
  background: linear-gradient(to right, #091b39 30%, #547afe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  color: #ffffff;
  padding-top: 50px;

  font-family: "Montserrat", sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

.encabezado-proyectos p {
  color: #091b39;
}

.contenedor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

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

.card-info {
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

#sobre-mi h1,
#sobre-mi h2 {
  font-size: 60px;
  margin: 0px;
}

#sobre-mi svg {
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 0;
  display: block;
}

.contenedor-sobre-mi {
  display: flex;
  justify-content: space-between;
  color: black;
  position: relative;
  z-index: 1;
}

.imagen-sobre-mi {
  width: 60%;
  margin: 60px 80px 30px 30px;
}

.imagen-sobre-mi img {
  width: 100%;
  border-top-right-radius: 200px;
  border-top-left-radius: 200px;
}

.texto {
  padding: 50px;
}

.texto .cuadrado-redondeado {
  background-color: #ffac44;
}

#contacto h1 {
  color: white;
  margin: 0;
}

form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 60%;
  height: 100%;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #444;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  background-color: #f0f1ff;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  box-sizing: border-box;
}

.fila {
  display: flex;
  gap: 20px;
}

.fila .form-group {
  flex: 1;
}

.mensaje {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mensaje textarea {
  flex: 1;
  resize: none;
}

::placeholder {
  color: #c3c0dc;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #859efa;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background-color: #4a69e2;
}

.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  background-color: #128c7e;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #091b39;
  color: white;
  text-align: center;
  padding: 15px;

  transform: translateY(100%);
  opacity: 0;

  transition: all 0.4s ease;
  z-index: 20;
}

footer.visible {
  transform: translateY(0);
  opacity: 1;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #859efa7f;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 400px;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-icon {
  font-size: 3.5rem;
  color: #859efa;
  margin-bottom: 15px;
}

.popup-content h2 {
  font-family: "Montserrat", sans-serif;
  color: #859efa;
  margin: 0 0 10px 0;
  font-size: 1.6rem;
}

.popup-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 25px 0;
}

.btn-popup-close {
  width: 100%;
  padding: 12px;
  background-color: #859efa;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.btn-popup-close:hover {
  background-color: #4a69e2;
  color: white;
}

@media screen and (max-width: 1024px) {
  #servicios {
    height: auto;
  }

  #proyectos {
    height: auto;
  }
  .contenedor-tarjetas {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    padding: 0 40px;
    height: auto;
  }

  .tarjeta-grande {
    grid-column: span 2;
    grid-row: auto;
  }
}

/*tablet*/

@media screen and (max-width: 768px) {
  .hero-img {
    visibility: hidden;
  }
}

/*mobile*/

@media screen and (max-width: 550px) {
  body {
    overflow-y: auto;
    display: block;
    height: auto;
    min-height: 100dvh;
  }

  section {
    height: auto;
  }

  #inicio {
    padding: 0px 0px 40px 0px;
  }

  #servicios {
    padding-top: 40px;
  }

  .marco {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;
  }

  .contenido {
    overflow-y: visible;
    height: auto;
  }

  .nav {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;

    width: 50%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 2rem;
    gap: 20px;
    background-color: #859efa;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: left;

    box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.45);
    -webkit-box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.45);
    -moz-box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.45);
  }

  .nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .nav.visible .menu li:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0);
  }
  .nav.visible .menu li:nth-child(2) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateX(0);
  }
  .nav.visible .menu li:nth-child(3) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateX(0);
  }
  .nav.visible .menu li:nth-child(4) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateX(0);
  }

  .menu {
    flex-direction: column;
    align-items: start;
    padding: 0;
    margin: 0;
  }

  .menu li {
    padding: 10px;

    font-size: 20px;

    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
  }

  .boton-sin-estilo {
    all: unset;
    padding: 10px;
    font-size: 30px;
  }

  .abrir {
    position: absolute;
    margin: 16px;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .imagen-mobile {
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
  }

  .imagen-mobile img {
    border-image-repeat: no-repeat;
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-img {
    display: none;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-text {
    padding: 0px 60px 0px 60px;
    text-align: center;
    line-height: 1.6;
  }

  /*.contenedor-ola {
    position: relative;
    background: #e5ebeb;
    height: 50px;
  }

  .ola {
    position: absolute;
    height: 85px;
    width: 100%;
    background: #e5ebeb;
    bottom: 0;
  }

  .ola::before,
  .ola::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100% 50%;
  }

  .ola::before {
    width: 55%;
    height: 109%;

    background-color: white;
    right: -1.5%;
    top: 60%;
  }
  .ola::after {
    width: 55%;
    height: 100%;
    background-color: #e5ebeb;
    left: -1.5%;
    top: 40%;
  }*/

  #servicios h1 {
    margin-top: 60px;
  }

  .contenedor-tarjetas {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 40px;
    height: auto;
    gap: 20px;
  }

  .tarjeta-grande {
    grid-column: span 1;
    grid-row: auto;
    padding: 20px;
  }

  .tarjetita p {
    font-size: 20px;
  }

  .encabezado-proyectos {
    width: 80%;
  }

  .encabezado-proyectos h1 {
    font-size: 50px;
  }

  .encabezado-proyectos p {
    font-size: 20px;
  }

  .contenedor-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .icono-wrapper {
    align-self: center;
  }

  .contenido-tarjeta {
    text-align: center;
  }

  #sobre-mi {
    padding: 20px 0 40px 0;
  }

  #sobre-mi svg {
    top: 0;
    height: auto;
    max-height: 200px;
  }

  .contenedor-sobre-mi {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  #sobre-mi h1,
  #sobre-mi h2 {
    font-size: 38px;
    text-align: center;
  }

  .texto {
    padding: 20px 10px;
    text-align: left;
    width: 100%;
  }

  .texto h3 {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .texto p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .texto .cuadrado-redondeado {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
  }

  .imagen-sobre-mi {
    width: 80%;
    max-width: 280px;
    margin: 30px auto 0 auto;
    order: -1;
  }

  .imagen-sobre-mi img {
    border-top-right-radius: 120px;
    border-top-left-radius: 120px;
  }

  #contacto {
    padding: 40px 16px;
    height: auto;
  }

  #contacto h1 {
    font-size: 36px;
    margin-bottom: 24px;
    text-align: center;
  }

  .form-container {
    width: 90%;
    border-radius: 20px;
    height: auto;
  }

  .fila {
    flex-direction: column;
    gap: 0;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    margin-bottom: 16px;
    font-size: 15px;
  }

  .mensaje textarea {
    min-height: 120px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
  }
}
