/* ---- RESET GENERAL ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #A8B9A4;
  font-family: "Poppins", sans-serif;
  color: #333;
}

/* ---- HEADER ---- */
header {
  background-color: #A8B9A4;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* ---- NAVBAR ---- */
.navBar {
  background-color: #A8B9A4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 30px;
  height: 100px;
  font-family: "Poppins", sans-serif;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 90px; /* alto casi total de la navbar */
  width: auto;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.6rem;
}

.nav-icons a {
  color: #2f5d50;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-icons a:hover {
  color: #1b3b32;
  transform: scale(1.1);
}

.navbar-nav .nav-link {
  color: #2f5d50 !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #1b3b32 !important;
}

/* ---- IMAGEN DE PORTADA ---- */
.fondo {
  background-image: url("/images/fondo.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
}

/* ---- TÍTULOS UNIFICADOS ---- */
h1, h2, h3, .titleCard {
  font-family: "Playfair Display", serif;
  color: #2f5d50;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 30px;
  margin-top: 20px;
}

h1::after, h2::after, h3::after, .titleCard::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #b6c7b1;
  margin: 10px auto 0;
  border-radius: 2px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3, .titleCard {
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3, .titleCard {
    font-size: 1.2rem;
  }
}

/* ---- SECCIÓN ÁREAS ---- */
.areas {
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.card {
  width: 18rem;
  height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #ffffff;
  padding: 10px; /* 👈 da aire a todo el contenido */
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding: 20px; /* 👈 más margen interior */
}

.titleCard {
  font-weight: 600;
  font-family: "Playfair Display", serif;
  color: #2f5d50;
  margin-bottom: 5px; /* 👈 menos espacio entre título y texto */
}

.card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-top: 5px;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}
/* ---- SECCIÓN ABOUT ME ---- */
.aboutMe {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background-color: #e9f3ef;
}

.aboutMe-container {
  display: flex;
  width: 85%;
  max-width: 1100px;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #fff;
  position: relative;
}

.aboutMe-image {
  width: 40%;
  position: relative;
  overflow: hidden;
}

.aboutMe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aboutMe-image::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2f5d50 20%, #e9f3ef 100%);
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 60% 100%);
  opacity: 0.9;
}

.aboutMe-text {
  width: 60%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
}

.aboutMe-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #444;
}

.aboutMe-text strong {
  color: #2f5d50;
}

@media (max-width: 900px) {
  .aboutMe-container {
    flex-direction: column;
  }

  .aboutMe-image, .aboutMe-text {
    width: 100%;
  }

  .aboutMe-image::after {
    clip-path: none;
    background: transparent;
  }

  .aboutMe-text {
    padding: 30px 20px;
  }
}

/* ---- CONTACTO ---- */
#contacto {
  background-color: #f7f9f8;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  font-family: "Poppins", sans-serif;
}

.contact-container {
  background: #fff;
  width: 80%;
  max-width: 700px;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-container p {
  color: #555;
  margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2f5d50;
  box-shadow: 0 0 5px rgba(47, 93, 80, 0.2);
  outline: none;
}

.contact-form button {
  background-color: #2f5d50;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #3c6f60;
}

/* ---- FOOTER ---- */
footer {
  background-color: #6d6d6d;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  text-align: left;
  font-size: 16px;
}

/* Texto central */
.footer-center {
  flex: 1;
  text-align: center;
  font-size: 16px;
}

.footer-icons a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #dcdcdc;
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-icons {
    margin-top: 10px;
  }
}

/* ---- WHATSAPP ---- */
.whatsapp-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 100;
  text-decoration: none;
}

.whatsapp-button img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

