/* Importar tipografías desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700&family=Montserrat:wght@400;500;600&display=swap');

/* Tipografía global */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f4f3ef;
  color: #3a332d;
}

.category-header h1 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 500;
}

.category-header h2 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 400;
}

.category-header h3 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 300;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  color: #3a332d;
}

/* Párrafos y textos */
p, li, span, a, button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: #625E5B;
}


/* Welcome con imagen de fondo */
.welcome {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Imagen de fondo con Ken Burns */
.welcome::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("http://localhost/kavastudio/images/kava-hero.webp") center/cover no-repeat;
  animation: kenburns 20s infinite alternate;
  z-index: 0;
}

/* Overlay sombreado */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); /* marrón oscuro semitransparente */
  z-index: 1;
}

/* Contenido centrado */
.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #f4f3ef;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.welcome-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.welcome-content p {
  font-size: 16px;
  font-weight: 400;
}

.logo {
  width: 300px;
  margin-bottom: 0px;
}

/* Animación Ken Burns */
@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to { transform: scale(1.2) translate(-20px,-20px); }
}

.welcome h1 {
  font-size: 28px;
  margin-top: 10px;
  color: #3a332d;
}

/* Grid buttons */
.grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 20px;
}
.grid-item {
  background: #cfcfcf;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
}
.grid-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.grid-item p {
  margin: 10px 0;
  font-weight: 600;
}
.grid-item:hover { transform: scale(1.05); }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  height: 250px;
}
.carousel img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  animation: kenburns 20s infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.2) translate(-20px,-20px); }
}

/* Services */
.services {
  padding: 30px 20px;
}
.services h2 {
  color: #3a332d;
  margin-bottom: 15px;
}
.services ul {
  list-style: none;
  padding: 0;
}
.services li {
  background: #f4f3ef;
  border-bottom: 1px solid #cfcfcf;
  padding: 12px;
  font-size: 16px;
}

/* Location */
.location {
  padding: 30px 20px;
  text-align: center;
}
#map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

/* Footer */
footer {
  background: #615e5b;
  color: #fff;
  text-align: center;
  padding: 20px;
}
footer a {
  color: #d4c9b7;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Desktop welcome only */
@media(min-width:1024px) {
  .welcome h1 { font-size: 48px; }
  .grid-buttons, .carousel, .services, .location { display: none; }
}

/* Sticky bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: ##615e5b;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  z-index: 100;
}

.bottom-nav .nav-item {
  color: #f4f3ef;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.bottom-nav .nav-item.active {
  color: #d4c9b7; /* beige destacado */
  border-top: 2px solid #d4c9b7;
}

.bottom-nav .nav-item:hover {
  color: #d4c9b7;
}

/* Ocultar en desktop */
@media(min-width:1024px) {
  .bottom-nav { display: none; }
}
.bottom-nav .nav-item.active {
  color: #d4c9b7; /* beige destacado */
  border-top: 2px solid #d4c9b7;
}

/* ABOUT section */
.about {
  background: #f4f3ef;
  padding: 30px 20px;
}

.about-section {
    width: 100%;
    padding: 10px 40px 0px 40px; /* Padding vertical solo, dejamos los lados a 0 para controlar desde el hijo */
    background-color: #f4f3ef;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    
    /* ESTO ES LA CLAVE PARA EL PADDING DERECHO/IZQUIERDO */
    padding-left: 20px;
    padding-right: 20px;
    
    /* Asegura que el padding no sume ancho extra al contenedor */
    box-sizing: border-box; 
    
    display: block;
    text-align: center;
}

/* Opcional: añade un toque de animación para que aparezca suave */
.about-content {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 25px;
  color: #3a332d;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: #7a7369;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-text .btn {
  display: inline-block;
  background: #3a332d;
  color: #f4f3ef;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.about-text .btn:hover {
  background: #7a7369;
}

/* Imagen con cuadro detrás */
.about-image {
  position: relative;
  flex: 1;
}
.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}
.about-image .image-box {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: #d4c9b7;
  border-radius: 10px;
  z-index: 1;
}

/* Responsive */
@media(min-width:768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }
}

/* Services section */
.services {
  background: #f4f3ef;
  padding: 30px 20px;
}

.services-header {
  text-align: center;
  margin-bottom: 20px;
}
.services-header h2 {
  font-size: 32px;
  color: #3a332d;
  margin-bottom: 10px;
}
.services-header p {
  font-size: 16px;
  color: #7a7369;
}

/* Grid de servicios */
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.service-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.service-info h3 {
  margin: 0 0 10px;
  color: #3a332d;
  font-size: 20px;
}
.service-info p {
  font-size: 14px;
  color: #7a7369;
  margin-bottom: 10px;
}
.service-info .price {
  font-weight: 700;
  color: #3a332d;
}

/* Responsive */
@media(min-width:768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ABOUT section */
.about {
  background: #f4f3ef;
  padding: 20px 20px;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 32px;
  color: #3a332d;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 16px;
  color: #7a7369;
  line-height: 1.6;
  margin-bottom: 20px;
}
.about-text .btn {
  display: inline-block;
  background: #3a332d;
  color: #f4f3ef;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.about-text .btn:hover {
  background: #7a7369;
}

/* Imagen con cuadro detrás */
.about-image {
  position: relative;
  flex: 1;
}
.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s, box-shadow 0.4s;
}
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.about-image .image-box {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: #d4c9b7;
  border-radius: 10px;
  z-index: 1;
}

/* Responsive */
@media(min-width:768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }
}

/* Footer nav */
.footer-nav {
  margin-top: 5px;
}
.footer-nav a {
  margin: 0 5px;
  color: #f3dbc3;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}

/* Icono superior en secciones */
.section-icon {
  width: 100px;
  margin: 0 auto 5px auto; /* centrado horizontal con margen inferior */
  display: block;
}

/* Icono inferior en secciones */
.footer-icon {
  width: 60px;
  margin: 0 auto 5px auto; /* centrado horizontal con margen inferior */
  display: block;
}

/* CTA con imagen de fondo y parallax */
.about-cta {
  position: relative;
  background: url('http://localhost/kavastudio/images/about2.webp') center/cover no-repeat fixed; /* parallax */
  height: 400px;
  display: flex;
  align-items: flex-end; /* contenido en la mitad inferior */
  justify-content: center;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1100px;
  overflow: hidden;
}

/* Overlay inferior */
.cta-overlay {
  background: rgba(58,51,45,0.7); /* overlay semitransparente */
  text-align: center;
  padding: 40px 20px;
  width: 100%;
  border-radius: 0 0 12px 12px;
}

/* Texto en blanco */
.cta-overlay h3,
.cta-overlay p,
.cta-overlay a {
  color: #fff; /* letras blancas */
}

.cta-overlay h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 26px;
  margin-bottom: 15px;
}

.cta-overlay p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}

.cta-overlay .btn {
  background: #d4c9b7;
  color: #3a332d;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.cta-overlay .btn:hover {
  background: #f4f3ef;
  color: #3a332d;
}

/* Full section image */
.full-section-image {
  position: relative;
  background: url('http://localhost/kavastudio/images/spa.webp') center/cover no-repeat fixed;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1100px;
  overflow: hidden;
}

/* Overlay */
.contact-overlay {
  background: rgba(58,51,45,0.7);
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
}

/* Texto en blanco */
.contact-overlay h2,
.contact-overlay p,
.contact-overlay .contact-info p,
.contact-overlay .contact-info a {
  color: #fff; /* letras blancas */
}

.contact-overlay h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 32px;
  margin-bottom: 15px;
}

.contact-overlay p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 15px;
}

.contact-info a {
  text-decoration: underline;
}

/* Botón */
.contact-overlay .btn {
  background: #d4c9b7;
  color: #3a332d;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.contact-overlay .btn:hover {
  background: #f4f3ef;
  color: #3a332d;
}

.book-section {
  background: #f4f3ef;
  padding: 20px 20px;
  text-align: center;
}

.booking-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.booking-form label {
  text-align: left;
  font-family: 'Lexend', sans-serif;
  color: #3a332d;
}

.booking-form input,
.booking-form select {
  padding: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
}

.booking-form .btn {
  background: #3a332d;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.booking-form .btn:hover {
  background: #7a7369;
}

.filters {
  margin-bottom: 20px;
  text-align: center;
}
.filters a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
  color: #3a332d;
}
.filters a:hover {
  text-decoration: underline;
}

.appointments-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}
.appointments-table th, .appointments-table td {
  border: 1px solid #cfcfcf;
  padding: 10px;
  text-align: center;
}
.appointments-table th {
  background: #d4c9b7;
  color: #3a332d;
}
.search-form {
  margin: 20px auto;
  text-align: center;
}
.search-form input, .search-form button {
  padding: 8px;
  margin: 5px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
}
.search-form button {
  background: #3a332d;
  color: #fff;
  cursor: pointer;
}
.search-form button:hover {
  background: #7a7369;
}

.export {
  text-align: right;
  margin: 20px;
}
.export .btn {
  background: #3a332d;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.export .btn:hover {
  background: #7a7369;
}

.form-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 30px; /* Bordes suaves estilo AZ Cairo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.kava-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kava-form input, 
.kava-form select {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    background: #fcfcfc;
    transition: 0.3s;
}

.kava-form input:focus {
    border-color: #b89758; /* Color dorado */
    outline: none;
}

.btn-submit {
    background: #3a332d;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #b89758;
}

.message-box {
        animation: fadeOut 3s forwards;
    }
    @keyframes fadeOut {
        0% { opacity: 1; }
        80% { opacity: 1; }
        100% { opacity: 0; }
    }
	
.btn-container {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    width: 100%;             /* Asegura que el contenedor ocupe todo el ancho */
    padding: 10px 0;         /* Espacio superior e inferior */
}

.btn-services {
    width: 70%;              /* El 70% solicitado */
    max-width: 800px;        /* Evita que el botón sea excesivamente grande en pantallas de PC */
    background-color: #3a332d; /* El tono oscuro de KAVA */
    color: #ffffff;           /* Letras claras */
    text-align: center;
    padding: 20px 0;
    text-decoration: none;    /* Quita el subrayado del link */
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;      /* Estética elegante */
    border-radius: 15px;      /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Transición suave al pasar el mouse */
    display: block;
}

.btn-services:hover {
    background-color: #b89758; /* Cambia a tono dorado al pasar el mouse */
}

.category-header {
    background: #fff;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.category-header:hover { background: #f4f3ef; }


/* Esto hace que estos estilos SOLO funcionen dentro de kava-services-page */
.kava-services-page .category-header { 
    display: flex !important; 
    align-items: center !important; 
    cursor: pointer !important; 
    padding: 15px !important; 
    background: #EACBAC !important; 
    border-radius: 10px !important; 
    margin-bottom: 5px !important; 
}

.kava-services-page .service-list { 
    display: none; 
    padding: 15px !important; 
    background: #fff !important; 
    border: 1px solid #eee !important; 
    margin-bottom: 20px !important;
}

.kava-services-page .service-row { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    margin-bottom: 5px !important; 
}

.kava-services-page .service-name-and-price { 
    display: flex !important; 
    justify-content: space-between !important; 
    flex-grow: 1 !important;
    border-bottom: 1px dotted #ccc !important; 
    padding-bottom: 5px !important; 
    margin-right: 15px !important;
}

.kava-services-page .service-desc { 
    display: block !important; 
    font-size: 0.85rem !important; 
    color: #666 !important; 
    margin: 5px 0 15px 0 !important; 
}
}

.service-item {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.service-name-price {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    margin-right: 15px; /* Espacio entre el precio y el botón */
    border-bottom: 1px dotted #ccc;
}

.service-name { font-weight: bold; }
.service-price { font-weight: bold; margin-left: 10px; }

.service-desc {
    margin: 8px 0 0 0;
    font-size: 0.85rem;
    color: #666;
    display: block; /* Obliga a saltar de línea */
    width: 100%;    /* Asegura que ocupe el ancho disponible */
}

.btn-add {
    background: #333;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0; /* Evita que el botón se aplaste */
}

/* Contenedor principal de la categoría */
.category-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background: #ffffff; 
    border: 1px solid #e0ddd5; /* Borde sutil */
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease; /* Efecto suave */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* Efecto Hover: Sombra y elevación */
.category-header:hover {
    background: #EACBAC;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #b89758; /* El dorado de Kava al pasar el mouse */
}

/* Imagen de categoría a 100px */
.category-header img {
    width: 100px;
    height: 100px;
    object-fit: cover; /* Mantiene la proporción de la foto */
    border-radius: 8px;
    margin-right: 20px;
}

/* Estilo del texto dentro de la cabecera */
.category-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #3a332d;
    font-family: 'Helvetica Neue', sans-serif;
}

/* Limpieza de contenedores */
.services-wrapper {
    display: flex;
    flex-direction: column; /* Fuerza a los hijos a apilarse verticalmente */
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

/* Forzamos el color en el título */
.category-header h2 {
    color: #625E5B;
    margin: 0;                 /* Elimina espacio innecesario alrededor del texto */
    font-size: 1.25rem;
}

/* Color de fondo y letras solicitado */
.category {
    display: block; /* IMPORTANTE: Asegura que cada categoría ocupe una línea propia */
    width: 100%;    /* Asegura que ocupe todo el ancho del contenedor padre */
    margin-bottom: 20px;
    background-color: #EACBAC;
    color: #625E5B;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Efecto al pasar el mouse por la tarjeta */
.category:hover {
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* El header debe rellenar el 100% de la tarjeta */
.category-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    margin: 0;                 /* Importante: margen 0 para no dejar bordes */
    width: 100%;
    box-sizing: border-box;    /* Asegura que el padding no rompa el ancho */
}

/* Ajuste del color del texto en servicios desplegados */
.service-list {
    background: #ffffff;       /* Fondo blanco para los servicios dentro de la card */
    padding: 15px;
    border-top: 1px solid #ddd;
}

.service-name, .service-price, .service-desc {
    color: #625E5B;
}

.cart-container { max-width: 600px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
        
.item { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 10px 0; 
}

.total { font-weight: bold; font-size: 1.2rem; margin-top: 20px; border-top: 2px solid #EACBAC; padding-top: 10px; 
}

.btn-clear { background: #625E5B; color: #fff; border: none; padding: 10px; border-radius: 5px; cursor: pointer; margin-top: 20px; 
}

.floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #625E5B; /* Fondo oscuro */
    color: #ffffff;      /* Texto principal blanco */
    padding: 15px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* Color especial para los números y montos */
#cart-count, #cart-total {
    color: #EACBAC;      /* Color melocotón para que resalte */
    font-weight: bold;
    font-size: 1.1rem;
}

.floating-cart a {
    background: #EACBAC;
    color: #625E5B;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Esto fuerza el color sin importar el resto de tus estilos */
#total-amount {
    color: #EACBAC !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

/* Si tu contenedor total también tiene un estilo que ignora todo, haz esto: */
.total {
    color: #625E5B !important; /* Color base del texto total */
}

/* 1. Ajuste de Estructura Flexbox */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* 2. El contenido principal debe tomar el espacio sobrante */
/* Usamos esta clase para agrupar todo lo que NO sea Hero o Footer */
.main-content {
    flex: 1 0 auto;
}

/* 3. Footer Sticky (El único que se mueve al fondo) */
footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: 20px;
}

/* Corrección de emergencia para desbordamiento */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Esto corta cualquier cosa que se salga lateralmente */
}

.about-section {
    width: 100%;
    box-sizing: border-box; /* Esto hace que el padding se incluya dentro del ancho */
    padding: 0 15px;
}

.text-block-simple {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    box-sizing: border-box;
}