* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Previene scroll horizontal */
}

body {
    overflow-x: hidden; /* Previene scroll horizontal */
}

/* Todas las secciones ocupan 100% de altura */
section {
    min-height: 100vh;
    min-height: 100dvh; /* Altura dinámica del viewport */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem 3rem; /* Padding superior para navbar fijo */
}

/* Contenedor interno de las secciones */
section > div {
    width: 100%;
    max-width: 1280px; /* Limita el ancho máximo del contenido */
}

/* Menú móvil */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* Botón WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: invert(1);
}

/* ============================================
   MEDIA QUERIES RESPONSIVE
   ============================================ */

/* Tablets y dispositivos medianos */
@media (max-width: 1024px) {
    section {
        padding: 5rem 1rem 2rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    section {
        padding: 5rem 1rem 2rem; /* Padding superior para navbar móvil */
        min-height: calc(100vh - 10px); /* Pequeño ajuste para mejor UX */
    }
    
    /* Ajuste de textos */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* Móviles pequeños */
@media (max-width: 640px) {
    section {
        padding: 4.5rem 1rem 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Pantallas grandes */
@media (min-width: 1536px) {
    section {
        padding: 7rem 2rem 4rem;
    }
}

/* SECCIONES CON MUCHO CONTENIDO - Permitir scroll interno */
#sobre-mi,
#servicios,
#sabiasque,
#testimonios,
#faq,
#contacto {
    min-height: 100vh;
    height: auto; /* Permite crecer si el contenido lo requiere */
}