/* ----------------------- */
/* -------- GENERAL ------ */
/* ----------------------- */

html {
  scroll-behavior: smooth;
}



/* Reset básico elimina márgenes/paddings por defecto y uniforma el box model */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  font-family: "Inter", sans-serif;
  background: #f7f7f7;   /*Color fondo general*/
  color: #1a1a1a;   /*Color texto*/
  line-height: 1.6;   /*Altura de la linea agadable para leer*/
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: #0b1c2c;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}


/* ----------------------- */
/* ------- HEADER -------- */
/* ----------------------- */

header {
  display: flex;  /*Elementos en fila*/
  justify-content: space-between;  /*Separa logo, navegacion y boton*/
  align-items: center;  /*Centra verticalmente*/
  padding: 1.5rem 7rem; /*Espacio interno*/
  background: #0b1c2c;
  color: white;
  position: sticky;  /*Se pega arriba al hacer scroll*/
  top: 0;
  z-index: 1000;  /*Se mantiene arriba del contenido*/
}

header .logo {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: bold;  /* Negrilla */
}

header nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav ul {
  list-style: none;  /*Sin viñetas*/
  display: flex;  /*Menu horizontal en escritorio*/
  gap: 1rem; /*Separacion entre items*/
}


header nav a {
  color: white;
  text-decoration: none;  /*Quita subrayado*/
  transition: color 0.3s ease;  /*Animacion suave al hover*/
}

header nav a:hover {
  color: #f8e7c9;  /*Color hover*/
}

/* ----------------------- */
/* ------- INICIO -------- */
/* ----------------------- */


#inicio {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;  /*Centra verticalmente */
  align-items: center;  /*Centra horizontalmente*/
  text-align: center;
  background: linear-gradient(to bottom, #0b1c2c, #14344f); /*Degradado*/
  color: white;
  padding: 130px 20px;
}

#inicio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background-image: url("IMG4.png"); /* Coloca tu imagen */
  background-size: auto 80%;
  background-repeat: no-repeat;
  background-position: left bottom;
  opacity: 0.2; /* Transparencia regulable */
  pointer-events: none; /* No estorba */
}

#inicio::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background-image: url("IMG5.png"); /* Coloca tu imagen */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.2; /* Transparencia regulable */
  pointer-events: none; /* No estorba */
}


#inicio h1 {
  color: white;  
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-bottom: 15px;
}

#inicio p {
  max-width: 600px;
  margin: auto;
  margin-bottom: 25px;
}

#inicio a {
  display: inline-block;
  background: #f8e7c9;
  color: #0b1c2c;
  padding: 12px 28px;
  border-radius: 8px;  /*Pastilla*/
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

#inicio a:hover {
  background: #ecf0f1;
  transform: scale(1.05);
}


/* ----------------------- */
/* ------- PERFIL -------- */
/* ----------------------- */


#perfil{
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 60px 20px;
  scroll-margin-top: 5rem;
  text-align: justify;
}

.img {
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

#perfil h2{
  margin-bottom: 10px;
  
}

/* ----------------------- */
/* ------ SECCIONES ------ */
/* ----------------------- */

.titulo{
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.4rem; 
}

#campo2{
  scroll-margin-top: 1.5rem;  
}

.campo2{
  padding: 2rem 1rem;
  max-width: 900px;
  margin:auto;
  scroll-margin-top: 4rem;
}


.contenedor{
  text-align: center;
  padding: 60px 20px 40px 20px;
  border-radius: 20px;
  margin-bottom: 1rem;
}



.areas{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.area {
  width: 250px;              
  height: 120px;             
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: white;
  border-radius: 15px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.area a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}




/* 🔥 Efecto hover moderno */
.area:hover {
  transform: translateY(-8px) scale(1.03);
  background: linear-gradient(135deg, #0b1c2c, #14344f); 
  color: #f8e7c9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.area:hover a {
  color: #f8e7c9;
}

.area a {
  color: #1a1a1a;
  text-decoration: none;  /*Quita subrayado*/
  transition: color 0.3s ease;  /*Animacion suave al hover*/
}

/* ---------------------------------- */
/* ------- OTROS SERVICIOS ---------- */
/* ---------------------------------- */


.servicios{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  width: 320px;
  background-color: #f4f4f6;
  border-radius: 18px;
  padding: 50px 25px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,5);
}



/* ----------------------- */
/* ------- CONTACTO ------- */
/* ----------------------- */
#contacto {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 4rem auto;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 7rem;
}

#contacto h2 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}


#contacto a.contacto-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  margin: 1.5rem 0 2rem 0;
}

#contacto a.contacto-btn:hover {
  background: #1ebc57;
  transform: scale(1.05);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}

#contacto div {
  font-size: 1.1rem;
  color: #1a1a1a;
}

.copy {
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Tooltip oculto */
.copy::after {
  content: "Copiado ✔";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b1c2c;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Cuando está activo */
.copy.copiado::after {
  opacity: 1;
}

.copy.copiado {
  color: #a6c3d8; /* azul suave */
}


/* ----------------------- */
/* ------- FOOTER -------- */
/* ----------------------- */

footer {
  background: #0b1c2c;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}