/* Estilo Body */
body {
  font-family: "Poppins";
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f2f2f2;
  color: #333;
  /* padding-top eliminado de body, se usará scroll-padding-top en html */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  overflow-x: hidden;
}


/* Scroll padding para la navbar fija */
html {
  scroll-behavior: smooth; /* Mantener el scroll suave */
  scroll-padding-top: 90px; /* Ajustar según la altura de tu navbar en desktop */
}

/* Estilo Hero Section*/
.hero-section {
  background-color: #e3f2fd;
  padding: 60px 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Contenedor interno hero */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.8em;
  color: #074259;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Merriweather", serif;
}

.hero-content p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.button-whatsapp {
  display: inline-block;
  padding: 10px 25px;
  background-color: #074259;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.button-whatsapp:hover {
  background-color: #1565c0;
}

.hero-image-container {
  flex: 1;
  position: relative;
  text-align: center;
  min-width: 300px;
  min-height: 300px;
  margin-top: 40px; /* Añadido: Margen superior para separar la imagen del contenido de arriba/navbar */
}

.hero-image {
  display: block;
  max-width: 95%; /* Modificado: Reducir el tamaño máximo al 80% del contenedor */
  height: auto;
  border-radius: 10px;
}

/* Styling for Decorative Elements */
.decorative-element {
  position: absolute;
  z-index: 5;
  width: 50px;
  height: 50px;
  opacity: 0.6;
}

.decorative-leaf-1 {
  top: 5%;
  left: -20px;
  background-color: #90caf9;
  transform: rotate(30deg);
}

.decorative-leaf-2 {
  bottom: 10%;
  right: -20px;
  background-color: #e1f5fe;
  transform: rotate(-40deg);
}

.decorative-branch {
  bottom: 0;
  right: 0;
  width: 100px;
  height: 150px;
  background-color: #bbdefb;
  z-index: 4;
}

/* Navbar fija */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 1em 2em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

/* Mini efecto de "sombra interna" */
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
}

/* Links centrados (para pantallas grandes) */
.navbar-links {
  display: flex;
  gap: 2em;
  list-style: none;
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

/* Estilos de los links */
.navbar-links li a {
  text-decoration: none;
  color: #074259;
  font-weight: 600;
  position: relative;
  padding: 0.5em 0.7em;
  transition: all 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
}

.navbar-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0%;
  background-color: #074259;
  transition: width 0.3s ease;
}

.navbar-links li a:hover,
.navbar-links li a.active {
  background-color: rgba(7, 66, 89, 0.1);
  color: #000;
}

/* Animación titileoTexto */
@keyframes titileoTexto {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.navbar-contacto {
  margin-left: auto;
}

.btn-contacto {
  background-color: #000;
  color: #fff !important;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.3s ease;
  border: none;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
  animation: titileoTexto 1.5s infinite;
}

.btn-contacto:hover {
  background-color: #222;
  transform: scale(1.05);
}

#contacto h2 {
  text-align: center; /* Centra el texto dentro del h2 */
}

/* Logo */
.navbar-logo {
  margin-left: 1em;
}

/* Estilo para el enlace del logo */
.navbar-logo a {
  display: flex; /* Asegurar que el enlace no afecte el layout del logo */
  align-items: center;
  text-decoration: none; /* Eliminar subrayado del enlace del logo */
}

.logo {
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: rotate(-3deg) scale(1.05);
}

/* Estilo del botón de hamburguesa */
.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-icon .line {
    width: 100%;
    height: 3px;
    background-color: #074259;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animación del ícono de hamburguesa (opcional) */
.hamburger-icon.active .line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-icon.active .line:nth-child(2) { opacity: 0; }
.hamburger-icon.active .line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }


/* Card Section - Aplica a Servicios, ¿Por qué?, Sobre mí, Contacto */
.card-section {
  background: white;
  margin: 2em auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 0 10px #ccc;
  padding: 2em; /* Padding aplicado a la sección */
  text-align: left;
  transition: all 1s ease;
  animation: fadeInUp 0.9s ease-out forwards;
  box-sizing: border-box;
}

.card-section h2 {
  margin-top: 0;
  margin-bottom: 1px;
  font-size: 1.8em;
  font-family: "Merriweather", serif;
}

.card-section p,
.card-section li {
  margin: 1px;
  padding: 0;
  font-size: 1.1em;
  line-height: 1.7;
  font-weight: 490;
}

.card-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  max-width: 600px;
}


/* Estilos específicos para la sección Sobre mí con imagen */
#sobre-mi .sobre-mi-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 1em;
}

#sobre-mi .sobre-mi-text {
  flex: 1;
  min-width: 300px;
}

#sobre-mi .sobre-mi-image {
  flex-shrink: 0;
  text-align: center;
}

#sobre-mi .sobre-mi-image img {
  display: block;
  max-width: 100%;
  height: auto; /* Permitir que la altura se ajuste para mantener proporción */
  border-radius: 10px; /* Bordes ligeramente redondeados (ya no circular) */
  width: 250px; /* Tamaño base */
  height: 250px; /* Asegurar que sea cuadrado */
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease; /* Transición para el efecto de giro */
}

/* Efecto de giro al pasar el ratón */
#sobre-mi .sobre-mi-image img:hover {
  transform: rotate(5deg); /* Gira la imagen 5 grados */
  /* Puedes ajustar el ángulo o añadir otros efectos si quieres */
}


/* Formulario de contacto - estilos dentro de la card section */
/* Eliminados estilos de card duplicados, se confía en la clase .card-section del padre */
#contact-form {
  max-width: 600px; /* Este max-width está dentro de .card-section */
  margin: 20px auto 0 auto; /* Ajustado: solo margen superior/inferior, centrado */
  padding: 0; /* Asegurar que el padding venga de .card-section */
  background: none; /* Eliminar fondo si ya lo tiene .card-section */
  border-radius: 0; /* Eliminar border-radius */
  box-shadow: none; /* Eliminar sombra */
}

/* Asegurar que los elementos del formulario dentro de la card se vean bien */
#contact-form .form-group {
    margin-bottom: 20px;
}


/* Estilos generales para inputs y textareas (aplican dentro y fuera de cards) */
form input,
form textarea,
form select {
  display: block;
  width: 100%;
  margin-bottom: 1.5em;
  padding: 10px 1px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  font-family: "Merriweather", serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: white; /* Añadido para asegurar fondo blanco en select */
}

form input:focus,
form textarea:focus {
  border-color: #1da851;
  box-shadow: 0 0 5px rgba(29, 168, 81, 0.3);
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Estilo general de botones */
button {
  background: #074259;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #1da851;
  transform: scale(1.05);
}

/* Botón de submit del formulario de contacto (sobrescribe estilo general button) */
button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #074259;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-top: 30px;
  font-family: 'Poppins', serif;
  box-sizing: border-box;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}


#status {
  margin-top: 15px;
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
}

/* Clases opcionales para los mensajes de estado */
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #721c24; }


/* Botón de WhatsApp flotante */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 12px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 0 10px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-weight: bold;
  z-index: 200;
  animation: titileo 1.5s infinite;
  width: 50px;
  height: 50px;
  box-sizing: border-box;
}

.whatsapp:hover { transform: scale(1.1); box-shadow: 0 0 15px #25d366; }
.whatsapp::after {
  content: "Escribinos por WhatsApp";
  position: absolute; right: 110%; top: 50%; transform: translateY(-50%);
  background-color: #333; color: white; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  font-size: 0.9em;
}
.whatsapp:hover::after { opacity: 1; }

@keyframes titileo {
  0% { opacity: 1; box-shadow: 0 0 10px #25d366; }
  50% { opacity: 0.7; box-shadow: 0 0 20px #25d366; }
  100% { opacity: 1; box-shadow: 0 0 10px #25d366; }
}

/* estilo para el acordeon - dentro de la card section servicios */
.acordeon-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1em;
  font-size: 1.1em;
  background: #074259;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1em;
  border-radius: 5px;
  font-family: "Poppins";
  box-sizing: border-box;
  color: white;
}

.acordeon-btn:hover { background: black; }

.acordeon-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #fafafa;
  padding: 0 1em; /* Modificado: Padding vertical es 0 */
  border-left: 3px solid #ccc;
  margin-bottom: 1em;
  border-radius: 0 0 5px 5px;
}

.acordeon-content ul {
  padding-top: 1em;    /* Añade espacio arriba del contenido de la lista */
  padding-bottom: 1em; /* Añade espacio abajo del contenido de la lista */
  /* El padding-left, margin y list-style ya están definidos en .card-section ul */
}

.acordeon-content p { margin: 1em 0; }
.acordeon-icon { font-size: 1.3em; transition: transform 0.3s ease; }

/* Estilo para el footer */
.footer {
  background-color: #074259; color: #fff; text-align: center; padding: 2em 1em;
  font-size: 0.95em; margin-top: 4em; opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; box-sizing: border-box;
}


footer.show { opacity: 1; transform: translateY(0); }
.footer-redes { margin-bottom: 1em; }
.footer-redes a, .hecho-por a {
  color: #fff; margin: 0 10px; font-size: 1.8em; text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease; display: inline-block;
}
.footer-redes a:hover { color: orange; transform: scale(1.2); }

/* Estilo para los enlaces de texto en el footer (Política, Términos, Volver al inicio) */
.footer p a {
  color: #fff; /* Color blanco por defecto */
  text-decoration: none; /* Asegurarse de que no tengan subrayado */
  transition: color 0.3s ease; /* Transición suave para el color */
}

.footer p a:hover {
  color: orange; /* Color naranja al pasar el ratón */
}

.hecho-por { font-style: italic; margin-top: 0.5em; font-size: 0.5em; }
.kev-link { color: #fff; text-decoration: none; font-weight: bold; transition: color 0.3s ease; }
.kev-link:hover { color: #25d366; }

/* Animación fadeInUp */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Eliminar subrayado de enlaces generales */
a { text-decoration: none; }

/* =========================================== */
/* ====== Estilos de la Sección de Beneficios ====== */
/* =========================================== */

#beneficios {
    padding: 60px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

#beneficios h2 {
    font-size: 2.2em;
    color: #074259;
    margin-bottom: 40px;
    font-family: "Merriweather", serif;
}

.beneficios-grid {
    display: grid;
    /* Ajustado: minmax y gap para mejor distribución y evitar solapamiento */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Volver a un min-width de 280px */
    gap: 30px; /* Ajustar gap para reducir solapamiento */
    max-width: 1200px;
    margin: 0 auto;
}

.beneficio-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Ícono arriba del texto en desktop */
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.beneficio-item:hover {
    transform: translateY(-5px); /* Reducido el movimiento en hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.beneficio-icon {
    font-size: 3em;
    color: #074259;
    margin-bottom: 15px;
}

.beneficio-icon i { display: block; }

.beneficio-item p {
    font-size: 1.1em;
    color: #555;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* =========================================== */
/* ====== Boton fleca para volver al incio  ====== */
/* =========================================== */

#scrollToTopBtn {
  display: none; /* Oculto por defecto */
  position: fixed; /* Se queda fijo en la pantalla */
  bottom: 20px; /* Distancia desde abajo */
  left: 20px; /* Distancia desde la izquierda */
  z-index: 999; /* Asegura que esté por encima de otros elementos */
  border: none; /* Sin borde */
  outline: none; /* Sin outline al hacer foco */
  background-color: white; /* Fondo blanco como en tu imagen */
  color: #074259; /* Color de la flecha (si usas texto), ajústalo */
  cursor: pointer; /* Cursor de mano */
  padding: 10px; /* Espaciado interno */
  border-radius: 8px; /* Bordes redondeados como tu imagen */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Sombra suave */
  font-size: 18px; /* Tamaño de la flecha (si usas texto) */
  line-height: 1; /* Para centrar mejor el texto/icono */
}

#scrollToTopBtn:hover {
  background-color: #f1f1f1; /* Un ligero cambio de fondo al pasar el mouse */
}


/* =========================================== */
/* ====== Estilos para convertir la web a responsive  ====== */
/* =========================================== */

/* Estilos para pantallas de hasta 768px (Tablets y Móviles) */
@media (max-width: 768px) {

  /* BODY - padding-top eliminado */


  /* Scroll padding para la navbar fija en móvil */
  html {
      scroll-padding-top: 60px; /* Ajustar según la altura de tu navbar en móvil */
  }


  /* NAVBAR */
  .navbar { flex-direction: row; justify-content: space-between; align-items: center; padding: 0.5em 1em; height: 60px; }
  .navbar-logo { margin-left: 0; margin-bottom: 0; }
  .navbar-links {
    display: none;
    flex-direction: column; background-color: rgba(255, 255, 255, 0.95);
    position: absolute; top: 60px; left: 0; width: 100%; box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 1em 0; z-index: 999;
  }
  .navbar-links.active { display: flex; }
  .navbar-links li { text-align: center; margin: 0.5em 0; }
   .navbar-links li a { padding: 0.8em 1em; width: 80%; box-sizing: border-box; display: block; margin: 0 auto; color: #074259; }
   .navbar-links li a::after { content: none; }
  .navbar-contacto { margin-left: 0; margin-top: 0; width: auto; text-align: right; }
  .btn-contacto { width: auto; padding: 0.5em 1em; font-size: 0.9em; }
  .hamburger-icon { display: flex; margin-left: 1em; }


  /* HERO SECTION - Ajustes ya existían, revisados */
  .hero-container { flex-direction: column; text-align: center; gap: 20px; }
  .hero-content { text-align: center; }
  .hero-content h1 { font-size: 2em; }
  .hero-content p { font-size: 1em; }
  .hero-cta { justify-content: center; }
  .button-whatsapp { width: 80%; box-sizing: border-box; }
  .hero-image-container { margin-top: 40px; min-height: auto; min-width: auto; }
  

  /* CARD SECTION */
  .card-section {
    margin: 1em;
    padding: 1.5em;
  }

  .card-section h2 { font-size: 1.5em; }
  .card-section p, .card-section li { font-size: 1em; }

  /* Estilos específicos para la sección Sobre mí con imagen en responsive */
  #sobre-mi .sobre-mi-content {
      flex-direction: column;
      gap: 20px;
  }

  #sobre-mi .sobre-mi-text {
      min-width: auto;
  }


  /* FORMULARIO CONTACTO - dentro de card-section */
  #contact-form {
      max-width: 600px;
      margin: 10px auto 0 auto;
      padding: 0;
      background: none;
      border-radius: 0;
      box-shadow: none;
  }


  button[type="submit"] { font-size: 1em; }

  /* WHATSAPP BUTTON */
  .whatsapp { bottom: 15px; right: 15px; padding: 10px; width: 45px; height: 45px; }
  .whatsapp::after { content: none; }

  /* ACCORDION - dentro de card-section servicios */
  .acordeon-btn { font-size: 1em; padding: 0.8em; }
  .acordeon-content { padding: 0 0.8em; }

  /* FOOTER */
  .footer { padding: 1.5em 0.8em; font-size: 0.9em; margin-top: 2em; }
  .footer-redes a { margin: 0 8px; font-size: 1.5em; }
  .hecho-por { font-size: 0.6em; }


  /* SECCIÓN BENEFICIOS - Ajustes Responsive */
   #beneficios { padding: 40px 10px; }
   #beneficios h2 { font-size: 1.8em; margin-bottom: 30px; }

   .beneficios-grid {
       grid-template-columns: 1fr;
       gap: 20px;
   }

   .beneficio-item {
       padding: 20px;
       flex-direction: row;
       text-align: left;
       align-items: center;
   }

   .beneficio-icon {
       font-size: 2em;
       margin-bottom: 0;
       margin-right: 15px;
   }

    .beneficio-item p { font-size: 1em; }

}

/* Opcional: Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    /* BODY - padding-top eliminado */


    /* Scroll padding para la navbar fija en móvil muy pequeño */
    html {
        scroll-padding-top: 50px; /* Ajustar según la altura de tu navbar en móvil muy pequeño */
    }


    .navbar { height: 50px; padding: 0.5em 0.8em; }
    .navbar-logo .logo { height: 40px; }
    .hero-content h1 { font-size: 1.8em; }
    .hero-content p { font-size: 0.9em; }
    .button-whatsapp { width: 90%; }
    .card-section { margin: 0.5em; padding: 1em; }

    /* Estilos específicos para la sección Sobre mí con imagen en responsive muy pequeño */
     #sobre-mi .sobre-mi-image img {
         width: 150px;
         height: 150px;
     }

    #contact-form { padding: 15px; margin: 5px auto; }
    button[type="submit"] { font-size: 1em; }
    .whatsapp { bottom: 10px; right: 10px; padding: 8px; width: 40px; height: 40px; }

    /* SECCIÓN BENEFICIOS - Ajustes para móviles muy pequeños */
    #beneficios h2 { font-size: 1.5em; }
    .beneficio-item { padding: 15px; }
    .beneficio-icon { font-size: 1.8em; margin-right: 10px; }
    .beneficio-item p { font-size: 0.9em; }
}