/* Dar fuente h y p */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  padding-top: 41px;
  line-height: 1.6;
  background-color: #ffffff;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: #606861;
  display: flex;
  justify-content: left;
  padding: 0px 0;
  z-index: 1000;
}

/* ===== BOTONES DEL MENÚ ===== */

.menu .btn {
  display: flex;
  align-items: center;
  margin-top: 0;
  padding: 3px 16px;



  background-color: transparent;
  border: none;
  border-radius: 0;

  font-family: 'Inter', sans-serif;
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;

  transition: background-color 0.3s ease;
}

.menu .btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;

  width: 0;
  height: 2px;
  background-color: #e6e6ff;

  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu .btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.menu .btn:hover::after {
  width: 80%;
}

.menu .btn:first-child::after {
  display: none;
}

#logo-img {
  width: 250px;
}

#aurea-img {
  width: 250px;
}

#amenu {
  width: 35px;
  text-align: left;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #000000;
  border-radius: 5px;
  color: #000000;
  padding: 1px 30px;
  text-decoration: none;
  font-weight: bold;
}

/*-----------------------------------------------*/

.hero {
  background: linear-gradient(0deg, #ffffff, #606861);
  text-align: center;
  padding: 80px 10px;
}

.nosotros {
  padding: 60px 20px;
  text-align: center;
}

.servicios {
  padding: 60px 20px;
  text-align: center;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cardwho {
  background: #f3f4f6;
  padding: 30px;
  width: 450px;
  border-radius: 8px;
}

/* ===== CARTAS DE SERVICIOS ===== */

.cardser {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #606861, #ffffff);
  padding: 15px;
  border-radius: 8px;

  perspective: 1000px;
  width: 400px;
  height: 625px;
  transition: transform 0.3s ease;

  perspective: 1000px;
  /* efecto 3D */
  width: 400px;
  height: 625px;
  border-radius: 12px;
  /* opcional, bordes generales */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  /* hover zoom */
}

.cardser:hover {
  transform: scale(1.05);
  /* se hace un poco más grande */
}

.cardser:focus-within {
  outline: none;
  /* quitar borde al hacer click */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  /* rotación suave */
}

/* Gira la carta al hacer click */
.cardser:focus-within .card-inner {
  transform: rotateY(180deg);
}

/* Caras de la carta */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  /* misma curva para ambas caras */
  overflow: hidden;
}

/*Texto frontal de la carta*/
.tittlefrontcard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  z-index: 2;
  
  padding: 10px 20px;
  border: none;
}


/* Imagen frontal */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Parte trasera */
.card-back {
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  z-index: 3;
}

.card-back ul {
  padding-left: 30px;
  list-style: none;
}

.card-back li {
  margin-bottom: 5px;
}

.card-back li::before {
  content: "•";
  position: absolute;
  left: 25px;
  color: #ffffff;
  font-size: 1.2rem;
  transition: transform 0.5s ease, color 0.5s ease;
}

.card-back li:hover::before {
  transform: scale(2);
  color: #000000;
}


/* Formulario */

.contacto {
  background: #f8fff8;
  padding: 60px 20px;
  text-align: center;
}

form {
  max-width: 400px;
  margin: auto;
}

input,
textarea,
button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

input,
textarea {
  border-radius: 8px;
  border: 1px solid #e6ffe6;
}

/* ===== CONTACTO INTERACTIVO ===== */

.contacto {
  background: #ffffff;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

/* Tarjeta botón */
.contact-card {
  width: 420px;
  background: linear-gradient(135deg, #606861, #dbdbdb);
  border-radius: 16px;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  outline: none;
}

/* Hover efecto */
.contact-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Cabecera tipo botón */
.contact-header {
  padding: 40px 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.contact-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-header p {
  opacity: 0.9;
  font-size: 15px;
}

/* Formulario oculto */
.contact-form {
  max-height: 0;
  overflow: hidden;
  background: #afafaf;
  transition: max-height 0.6s ease;
  padding: 0 20px;
}

/* Mostrar formulario al hacer click */
.contact-card:focus-within .contact-form {
  max-height: 600px;
  padding: 30px 20px;
}

/* Animación header al abrir */
.contact-card:focus-within .contact-header {
  background: #606861;
}

/* Estilos formulario */
.contact-form form {
  max-width: 360px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid #c5d0f0;
}

.contact-form button {
  background: #606861;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #606861;
}
