Aquí tienes el contenido del archivo estilos.css optimizado, responsive y con comentarios.

Archivo: css/estilos.css

CSS

/*
 * Archivo: estilos.css
 * Descripción: Contiene los estilos CSS optimizados, responsive y accesibles
 * para el sitio web de Nextstepd.
 * Autor: Nextstepd
 * Fecha: 29 de Julio de 2025 (Última actualización por el asistente)
 */

/* ===================================== */
/* 0. RESET Y ESTILOS BASE       */
/* ===================================== */

/* Un reseteo básico para asegurar consistencia entre navegadores */
/* Se comenta el reseteo universal para evitar sobrescribir estilos de Font Awesome u otros */
/*
* {
* margin: 0;
* padding: 0;
* box-sizing: border-box;
*}
*/

/* Estilos globales para el cuerpo de la página */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente moderna y legible */
    background:linear-gradient(135deg, #253829 0%, #465747 50%, #465747 100%); /* Fondo oscuro con gradiente sutil */
    color: #fff; /* Color de texto predeterminado blanco */
    min-height: 100vh; /* Asegura que el body ocupe al menos toda la altura de la vista */
    display: flex;
    flex-direction: column; /* Organiza el contenido en columna, útil para el footer al final */
    overflow-x: hidden; /* Evita el scroll horizontal indeseado */
}

/* Elementos de HTML5 reseteados a display block para compatibilidad */
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

/* Estilo para enlaces por defecto */
a {
    text-decoration: none; /* Elimina el subrayado por defecto */
    color: inherit; /* Hereda el color del padre por defecto */
}

/* Estilo para imágenes para asegurar que no se desborden */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina el espacio extra inferior que a veces añaden las imágenes inline */
}

/* Clase para ocultar texto visualmente pero mantenerlo accesible para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ===================================== */
/* 1. CONTENEDOR GLOBAL DE PARTÍCULAS */
/* ===================================== */

/* Contenedor fijo para las partículas de fondo que se extiende por toda la pantalla */
#global-particles {
    position: fixed; /* Usa 'fixed' para que cubra la ventana de visualización sin importar el scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Asegura que esté detrás de todo el contenido */
    overflow: hidden;
    pointer-events: none; /* Asegura que no interfiera con los clics o interacciones del usuario */
}

/* Estilo base para cada partícula individual */
.particle {
    position: absolute;
    border-radius: 50%; /* Forma circular */
    background: rgba(123, 42, 5, 0.3); /* Color principal del sitio, semitransparente */
    box-shadow: 0 0 10px rgba(123, 42, 5, 0.5); /* Sombra para dar un efecto de brillo */
    animation: float 15s infinite linear; /* Animación de flotación */
}

/* Variaciones de color y duración para las partículas para mayor dinamismo */
.particle:nth-child(2n) {
    background: rgba(27, 110, 194, 0.2); /* Azul semitransparente */
    box-shadow: 0 0 15px rgba(27, 110, 194, 0.4);
    animation-duration: 20s; /* Duración diferente para cada grupo */
}

.particle:nth-child(3n) {
    background: rgba(23, 192, 183, 0.15); /* Verde azulado semitransparente */
    box-shadow: 0 0 20px rgba(23, 192, 183, 0.3);
    animation-duration: 25s; /* Otra duración diferente */
}

/* ===================================== */
/* 2. HEADER                */
/* ===================================== */

/* Estilos para la cabecera principal del sitio */
.header {
    position: sticky; /* Se mantiene en la parte superior al hacer scroll */
    top: 0;
    z-index: 100; /* Asegura que esté por encima de la mayoría de los otros elementos */
    background: rgba(23, 42, 28, 0.95); /* Fondo semitransparente oscuro */
    backdrop-filter: blur(10px); /* Efecto de desenfoque detrás de la cabecera */
    border-bottom: 1px solid rgba(123, 42, 5, 0.4); /* Línea inferior sutil */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidad */
}

/* Efecto decorativo en la parte inferior de la cabecera */
.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7B2A05, transparent); /* Gradiente de color principal */
}

/* Contenedor interno para alinear y espaciar los elementos de la cabecera */
.header-container {
    display: flex;
    justify-content: space-between; /* Espacia el logo y el menú */
    align-items: center; /* Centra verticalmente los elementos */
    max-width: 1400px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centra el contenedor */
    padding: 1.2rem 5%; /* Espaciado interno, adaptable */
}

/* Estilos para el logo (imagen + texto/nombre) */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

/* Estilo para la imagen del logo */
.logo-img {
    height: 65px; /* Tamaño del logo */
    transition: all 0.4s ease; /* Transición suave para efectos hover */
    filter: drop-shadow(0 0 5px rgba(123, 42, 5, 0.7)); /* Sombra para el logo */
}

/* Estilos para la imagen del nombre (si es una imagen separada) */
.nombre-img {
    height: 50px; /* Altura del nombre, ajusta según sea necesario */
    margin-left: 15px; /* Espacio entre el logo y el nombre */
    width: auto;
    display: inline-block;
    vertical-align: middle; /* Alinea verticalmente con el logo */
    max-width: 100%; /* Asegura que no se desborde */
}

/* Efectos hover para el logo */
.logo:hover .logo-img {
    transform: scale(1.1) rotate(-5deg); /* Aumenta tamaño y rota ligeramente */
    filter: drop-shadow(0 0 10px rgba(123, 42, 5, 0.9)); /* Sombra más intensa */
}

/* Efectos hover para el texto del logo (si aplica) */
.logo:hover .logo-text {
    text-shadow: 0 0 15px rgba(123, 42, 5, 0.8);
}

/* ===================================== */
/* 3. MENÚ DE NAVEGACIÓN         */
/* ===================================== */

/* Contenedor de la lista de navegación */
.nav-menu ul {
    display: flex; /* Elementos en línea */
    gap: 1.2rem; /* Espacio entre los elementos del menú */
    list-style: none; /* Elimina los puntos de la lista */
    margin: 0;
    padding: 0;
}

/* Estilos base para los botones de navegación */
.nav-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid #7B2A05; /* Borde con color principal */
    border-radius: 30px; /* Bordes redondeados */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transición con efecto de rebote */
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Oculta el desbordamiento del pseudo-elemento */
    z-index: 1; /* Asegura que el texto esté por encima del efecto */
}

/* Pseudo-elemento para el efecto de relleno al hacer hover */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Empieza sin ancho */
    height: 100%;
    background: linear-gradient(45deg, #7B2A05, #a53a0b, #7B2A05); /* Gradiente para el relleno */
    transition: width 0.5s ease; /* Transición para el ancho */
    z-index: -1; /* Detrás del texto */
}

/* Efectos hover para los botones de navegación */
.nav-btn:hover {
    color: white; /* Mantiene el color del texto */
    transform: translateY(-3px); /* Pequeño desplazamiento hacia arriba */
    box-shadow: 0 5px 15px rgba(123, 42, 5, 0.4); /* Sombra al hacer hover */
}

/* Expande el relleno al hacer hover */
.nav-btn:hover::before {
    width: 100%;
}

/* Iconos dentro de los botones de navegación */
.nav-btn i {
    margin-right: 8px; /* Espacio entre icono y texto */
    font-size: 0.85rem;
}

/* ===================================== */
/* 4. MENÚ HAMBURGUESA (Responsive) */
/* ===================================== */

/* Botón de menú hamburguesa (oculto por defecto en escritorio) */
.menu-toggle {
    display: none; /* Oculto en escritorio */
    cursor: pointer;
    width: 45px;
    height: 45px;
    position: relative;
    z-index: 101; /* Por encima del menú en móvil */
    background: rgba(123, 42, 5, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(123, 42, 5, 0.5);
    /* Alineación para centrar el icono */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Asegurar que no haya padding que afecte el tamaño del hamburguer */
}

/* Barra central del icono de hamburguesa */
.hamburger {
    position: absolute;
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra la barra */
    transition: all 0.3s ease; /* Transición para la animación */
    box-shadow: 0 0 5px rgba(123, 42, 5, 0.5);
}

/* Barras superior e inferior del icono de hamburguesa */
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(123, 42, 5, 0.5);
}

/* Posición de la barra superior */
.hamburger::before {
    top: -8px;
}

/* Posición de la barra inferior */
.hamburger::after {
    top: 8px;
}

/* ESTADOS ACTIVOS del menú hamburguesa (cuando está abierto) */
.menu-toggle.active .hamburger {
    background: transparent; /* Oculta la barra central */
    box-shadow: none;
}

/* Transforma la barra superior en una de las líneas de la 'X' */
.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: #7B2A05; /* Cambia de color al abrir */
}

/* Transforma la barra inferior en la otra línea de la 'X' */
.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: #7B2A05; /* Cambia de color al abrir */
}

/* ===================================== */
/* 5. RESPONSIVE DESIGN - CABECERA Y MENÚ */
/* ===================================== */

/* Media query para pantallas más pequeñas que 860px (tablets y móviles) */
@media (max-width: 860px) {
    .menu-toggle {
        display: flex; /* Muestra el botón de hamburguesa */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha de la pantalla */
        height: 100vh; /* Ocupa toda la altura de la vista */
        width: 70%; /* Ocupa el 70% del ancho */
        max-width: 300px; /* Ancho máximo para el menú móvil */
        background: rgba(23, 42, 28, 0.98); /* Fondo del menú móvil */
        backdrop-filter: blur(10px);
        padding-top: 100px; /* Espacio para la cabecera */
        transition: right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1); /* Transición suave al abrir/cerrar */
        z-index: 99; /* Por debajo del botón de hamburguesa */
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4); /* Sombra lateral */
        border-left: 1px solid rgba(123, 42, 5, 0.4); /* Borde lateral */
    }

    /* Fondo adicional para el menú móvil */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(23, 42, 28, 0.9) 0%, rgba(13, 31, 19, 0.95) 100%);
        z-index: -1;
    }

    /* Clase activa para mostrar el menú móvil */
    .nav-menu.active {
        right: 0; /* Mueve el menú a la vista */
    }

    /* Elementos del menú en móvil (columnas, centrados) */
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 20px;
    }

    /* Botones de navegación en móvil */
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%; /* Ocupa todo el ancho disponible */
        text-align: center;
        background: rgba(123, 42, 5, 0.1); /* Fondo sutil para los botones */
    }
}

/* Animaciones de aparición para los elementos del menú */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-menu ul li {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0; /* Oculto por defecto para la animación */
}

/* Retrasos escalonados para cada elemento del menú */
.nav-menu ul li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu ul li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu ul li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu ul li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu ul li:nth-child(5) { animation-delay: 0.5s; }


/* ===================================== */
/* 6. SECCIÓN HERO          */
/* ===================================== */

/* Contenedor principal de la sección hero */
.hero-section {
    position: relative;
    height: 100vh; /* Ocupa toda la altura de la vista */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
     background: linear-gradient(135deg, rgba(13,31,19,0.7) 0%, rgba(23,42,28,0.7) 100%); /* Fondo semitransparente oscuro */
    
    
}

/* Contenido principal del hero */
.hero-content {
    max-width: 1200px;
    padding: 20px;
    z-index: 10; /* Asegura que esté por encima de las luces */
    animation: fadeInUp 1s ease-out; /* Animación de aparición */
    
}

/* Título principal del hero */
/* Título principal del hero */
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    /* Para mejorar la nitidez: se elimina el efecto de gradiente en el texto */
    color: #fff; /* Se establece un color blanco sólido para máxima claridad */
    text-shadow: none; /* Se elimina cualquier sombra que pueda causar borrosidad */
    
    /* Las siguientes propiedades ya no son necesarias para un color sólido,
       pero se mantienen si se quisieran usar para otros elementos
       o si se decide aplicar un gradiente de otra forma en el futuro. */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    
    line-height: 1.1;
    animation: fadeInDown 1s ease-out; /* Animación de aparición */
    /* Propiedades para mejorar el renderizado de la fuente en diferentes navegadores */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Para Firefox en macOS */
}

/* Subtítulo del hero */
.hero-subtitle {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9); /* Color de texto semitransparente */
    animation: fadeInUp 1s ease-out 0.2s both; /* Animación con retraso */
}

/* Botón principal del hero */
.hero-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, #5b200d, #8c4c3c); /* Gradiente de fondo */
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(123, 42, 5, 0.5); /* Sombra */
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.4s both; /* Animación con retraso */
}

/* Pseudo-elemento para el efecto hover del botón */
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #a53a0b, #7B2A05); /* Gradiente invertido para el hover */
    transition: width 0.5s ease;
    z-index: -1;
}

/* Efectos hover para el botón del hero */
.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(123, 42, 5, 0.7);
}

.hero-btn:hover::before {
    width: 100%;
}

/* Luces de fondo decorativas */
.hero-light {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(123, 42, 5, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px); /* Efecto de desenfoque */
    animation: pulse 6s infinite alternate; /* Animación de pulso */
}

.light-1 {
    top: 20%;
    left: 15%;
}

.light-2 {
    bottom: 30%;
    right: 20%;
    background: radial-gradient(circle, rgba(23, 192, 183, 0.2) 0%, transparent 70%); /* Color diferente para la segunda luz */
}

/* ===================================== */
/* 7. ANIMACIONES GLOBALES  */
/* ===================================== */

/* Animación de flotación para partículas */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50px) translateX(50px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) translateX(100px) rotate(360deg);
        opacity: 0.6;
    }
}

/* Animación de entrada desde arriba */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de entrada desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de pulso para elementos luminosos */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ===================================== */
/* 8. RESPONSIVE HERO            */
/* ===================================== */

/* Adaptación para pantallas medianas (ej. tablets en horizontal) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem; /* Reduce el tamaño del título */
    }
    
    .hero-subtitle {
        font-size: 1.5rem; /* Reduce el tamaño del subtítulo */
    }
}

/* Adaptación para pantallas pequeñas (ej. tablets en vertical, móviles grandes) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem; /* Reduce aún más el título */
    }
    
    .hero-subtitle {
        font-size: 1.3rem; /* Reduce aún más el subtítulo */
    }
    
    .hero-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Adaptación para pantallas muy pequeñas (ej. móviles pequeños) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem; /* Tamaño de título para móviles */
    }
    
    .hero-subtitle {
        font-size: 1.1rem; /* Tamaño de subtítulo para móviles */
    }
}

/* ===================================== */
/* 9. SECCIÓN DE SERVICIOS       */
/* ===================================== */

.services-section {
    background: linear-gradient(135deg, rgba(13,31,19,0.7) 0%, rgba(23,42,28,0.7) 100%); /* Fondo semitransparente oscuro */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Contenedor principal de secciones para mantener el contenido centrado y con padding */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Asegura que esté por encima de cualquier patrón de fondo */
}

/* Cabecera común de las secciones */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Título común de las secciones */
.section-title {
    font-size: 3.2rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff 0%, #e6e6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Parte destacada del título (color principal) */
.section-title span {
    color: #7B2A05;
    -webkit-text-fill-color: #7B2A05;
}

/* Subtítulo común de las secciones */
.section-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Divisor decorativo para las secciones */
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, #7B2A05, transparent);
    margin: 25px auto;
}

/* Cuadrícula para las tarjetas de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Columnas adaptables */
    gap: 30px; /* Espacio entre las tarjetas */
}

/* Estilo base para cada tarjeta de servicio */
.service-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 350px;
    background-size: cover; /* Cubre el área con la imagen de fondo */
    background-position: center; /* Centra la imagen de fondo */
    transition: all 0.5s ease; /* Transición suave para todos los cambios */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Sombra */
}

/* Superposición oscura sobre la imagen de fondo de la tarjeta */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 31, 19, 0.1) 0%, rgba(13, 31, 19, 0.9) 100%);
    transition: all 0.5s ease;
}

/* Contenido de la tarjeta (texto, iconos, etc.) */
.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transition: all 0.5s ease;
}

/* Icono dentro de la tarjeta de servicio */
.service-icon {
    font-size: 2.5rem;
    color: #7B2A05; /* Color principal */
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Título de la tarjeta de servicio */
.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

/* Párrafo de la tarjeta de servicio */
.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Enlace "Ver detalles" en la tarjeta */
.service-link {
    color: #7B2A05;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Icono dentro del enlace */
.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Efectos Hover para las tarjetas de servicio */
.service-card:hover {
    transform: translateY(-10px); /* Se eleva ligeramente */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
}

.service-card:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(123, 42, 5, 0.1) 0%, rgba(123, 42, 5, 0.7) 100%); /* Cambia el color de la superposición */
}

.service-card:hover .service-content {
    transform: translateY(-20px); /* El contenido se desplaza hacia arriba */
}

.service-card:hover .service-icon {
    transform: scale(1.1); /* El icono se agranda */
    color: #fff; /* El icono cambia a blanco */
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9); /* El texto del párrafo se vuelve más opaco */
}

.service-link:hover {
    color: #fff; /* El enlace cambia a blanco */
}

.service-link:hover i {
    transform: translateX(5px); /* El icono del enlace se mueve a la derecha */
}

/* Responsive Design para la sección de servicios */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajuste de columnas */
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0; /* Reduce el padding vertical */
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles pequeños */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        height: 300px; /* Ajusta la altura de la tarjeta */
    }
}

/* ===================================== */
/* 10. SECCIÓN "QUIÉNES SOMOS"       */
/* ===================================== */
/* Estilos para la sección Quienes Somos */
.quienes-somos-section {
    background: linear-gradient(135deg, rgba(23,42,28,0.7) 0%, rgba(13,31,19,0.7) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.quienes-somos-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.quienes-somos-image .image-wrapper,
.eugene-image .image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.quienes-somos-image .profile-image,
.eugene-image .profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.quienes-somos-image .image-overlay,
.eugene-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 31, 19, 0.7) 0%, rgba(13, 31, 19, 0.2) 100%);
    transition: opacity 0.5s ease;
}

.quienes-somos-image:hover .profile-image,
.eugene-image:hover .profile-image {
    transform: scale(1.05);
}

.quienes-somos-image:hover .image-overlay,
.eugene-image:hover .image-overlay {
    opacity: 0.7;
}

.quienes-somos-content p,
.eugene-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.eugene-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .quienes-somos-grid,
    .eugene-grid {
        grid-template-columns: 1fr;
    }

    .quienes-somos-content,
    .eugene-content {
        order: 2;
        text-align: center;
    }

    .quienes-somos-image,
    .eugene-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto 30px;
    }
}


/* ===================================== */
/* 11. SECCIÓN DE TESTIMONIOS    */
/* ===================================== */

.testimonials-section {
    background: linear-gradient(135deg, rgba(23,42,28,0.7) 0%, rgba(13,31,19,0.7) 100%); /* Fondo semitransparente oscuro */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil (comentado si no se usa la imagen) */
/*
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}
*/

/* Cuadrícula para los testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Columnas adaptables */
    gap: 30px;
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

/* Estilo base para cada tarjeta de testimonio */
.testimonial-card {
    background: rgba(23, 42, 28, 0.7); /* Fondo de la tarjeta */
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(123, 42, 5, 0.3);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Efectos hover para la tarjeta de testimonio */
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(123, 42, 5, 0.2);
    border-color: rgba(123, 42, 5, 0.7); /* Borde más pronunciado */
}

/* Contenido del testimonio (texto y estrellas) */
.testimonial-content {
    position: relative;
    margin-bottom: 30px;
}

/* Icono de cita decorativo */
.quote-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 3rem;
    color: rgba(123, 42, 5, 0.3);
    z-index: -1;
}

/* Texto del testimonio */
.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

/* Estrellas de calificación */
.rating {
    color: #FFD700; /* Color dorado */
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Autor del testimonio */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(123, 42, 5, 0.3);
    padding-top: 20px;
}

/* Imagen del autor */
.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #7B2A05; /* Borde con color principal */
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Información del autor */
.author-info {
    flex: 1;
}

.author-info h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Icono del logo de la empresa del autor */
.company-logo {
    color: #7B2A05;
    font-size: 1.2rem;
}

/* Llamada a la acción (CTA) de los testimonios */
.testimonials-cta {
    text-align: center;
    margin-top: 60px;
}

/* Estilo común para botones CTA */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(45deg, #5b200d, #8c4c3c);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(123, 42, 5, 0.5);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-btn i {
    transition: transform 0.3s ease;
}

/* Efectos hover para botones CTA */
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(123, 42, 5, 0.7);
}

.cta-btn:hover i {
    transform: translateX(5px);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #a53a0b, #7B2A05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover::before {
    opacity: 1;
}

/* Asegura que el texto y el icono estén por encima del efecto */
.cta-btn span, 
.cta-btn i {
    position: relative;
    z-index: 1;
}

/* Responsive Design para la sección de testimonios */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas grandes */
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Una columna en tablets y móviles */
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-author {
        flex-direction: column; /* Apila la imagen y la info del autor */
        text-align: center;
    }
    
    .author-info {
        margin-top: 15px;
        text-align: center;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================== */
/* 12. SECCIÓN DE BLOG           */
/* ===================================== */

.blog-section {
    background: linear-gradient(135deg, rgba(13,31,19,0.7) 0%, rgba(23,42,28,0.7) 100%); /* Fondo semitransparente oscuro */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil (comentado si no se usa la imagen) */
/*
.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}
*/

/* Cuadrícula para las tarjetas del blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Columnas adaptables */
    gap: 30px;
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

/* Estilo base para cada tarjeta del blog */
.blog-card {
    background: rgba(23, 42, 28, 0.7); /* Fondo de la tarjeta */
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(123, 42, 5, 0.3);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Efectos hover para la tarjeta del blog */
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(123, 42, 5, 0.2);
    border-color: rgba(123, 42, 5, 0.7);
}

/* Imagen del artículo del blog */
.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05); /* Zoom sutil al hacer hover */
}

/* Etiqueta de categoría del blog */
.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(123, 42, 5, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contenido textual del blog */
.blog-content {
    padding: 25px;
}

/* Título del artículo del blog */
.blog-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: #7B2A05; /* Cambia de color al hacer hover */
}

/* Metadatos del blog (autor, fecha) */
.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-meta i {
    margin-right: 5px;
    color: #7B2A05;
}

/* Extracto del artículo del blog */
.blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pie de la tarjeta del blog */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(123, 42, 5, 0.3);
    padding-top: 15px;
}

/* Enlace "Leer más" */
.read-more {
    color: #7B2A05;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #a53a0b;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Contador de "Me gusta" */
.likes-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.likes-count i {
    color: #ff6b6b; /* Color del corazón */
    transition: all 0.3s ease;
}

.blog-card:hover .likes-count i {
    transform: scale(1.2); /* El corazón se agranda al hacer hover */
}

/* Llamada a la acción (CTA) de la sección de blog */
.blog-cta {
    text-align: center;
    margin-top: 50px;
}

.blog-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(45deg, #5b200d, #8c4c3c);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(123, 42, 5, 0.4);
}

.blog-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 42, 5, 0.6);
}

.blog-cta .cta-btn i {
    transition: transform 0.3s ease;
}

.blog-cta .cta-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design para la sección de blog */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===================================== */
/* 13. FOOTER (Pie de página)    */
/* ===================================== */

.footer-responsive {
    background: linear-gradient(90deg, #7B2A05 0%, #ff7e5f 100%); /* Gradiente de fondo para el footer */
    box-shadow: 0 -4px 24px rgba(123,42,5,0.12); /* Sombra superior */
    margin-top: 48px;
    font-family: 'Montserrat', Arial, sans-serif; /* Fuente específica para el footer */
}

/* Onda SVG decorativa en la parte superior del footer */
.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
    margin-bottom: -2px; /* Elimina espacio entre SVG y contenido */
}

/* Contenido principal del footer */
.footer-main-content {
    padding: 48px 0 0 0;
}

/* Contenedor interno del footer */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* Permite que las columnas se envuelvan */
    justify-content: space-between;
    gap: 32px;
    padding: 0 20px; /* Asegura padding en los lados */
}

/* Columnas del footer */
.footer-col {
    flex: 1 1 220px; /* Flex-grow, flex-shrink, flex-basis */
    min-width: 220px;
}

/* Ajustes para el logo en el footer */
.footer-col-logo .logo-img {
    height: 48px;
}

.footer-col-logo .nombre-img {
    height: 32px;
}

/* Texto de descripción en el footer */
.footer-about {
    color: #fff;
    margin: 16px 0 12px 0;
    font-size: 1.05rem;
}

/* Iconos de redes sociales */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #feb47b; /* Color al hacer hover */
}

/* Títulos de las columnas del footer */
.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Listas de enlaces en el footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #feb47b;
}

/* Texto para el newsletter */
.footer-text {
    color: #fff;
    margin-bottom: 8px;
}

/* Formulario de newsletter */
.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.newsletter-form input[type="email"] {
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    flex: 1;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.9); /* Fondo claro para el input */
}

.newsletter-form .submit-btn {
    background: #ff7e5f; /* Color de botón */
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form .submit-btn:hover {
    background: #feb47b;
}

/* Información de contacto en el footer */
.contact-info {
    color: #fff;
    font-size: 1rem;
    margin-top: 8px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.contact-info a {
    color: inherit; /* Hereda el color blanco */
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #feb47b;
}

/* Fila de CTA al final del contenido principal del footer */
.footer-cta-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0 0 0;
    padding: 0 20px; /* Asegura padding en los lados */
}

/* Botón CTA grande en el footer */
.footer-cta-btn {
    background: linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 18px 40px;
    border-radius: 40px;
    box-shadow: 0 4px 18px rgba(255,126,95,0.15);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}

.footer-cta-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(255,126,95,0.25);
    background: linear-gradient(90deg, #feb47b 0%, #ff7e5f 100%);
}

/* Sección inferior del footer (copyright y badges) */
.footer-bottom {
    background: #7B2A05; /* Color sólido más oscuro */
    padding: 24px 0 12px 0;
    margin-top: 32px;
}

.footer-bottom .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Texto de copyright */
.copyright {
    color: #fff;
    font-size: 1rem;
}

/* Badges de seguridad/privacidad */
.footer-badges {
    display: flex;
    gap: 16px;
}

.badge {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive del Footer */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column; /* Columnas apiladas */
        gap: 24px;
        align-items: flex-start; /* Alineación a la izquierda */
    }
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .footer-cta-row {
        margin: 32px 0 0 0;
    }
}

/* ===================================== */
/* 14. FORMULARIO DE CONTACTO / PÁGINAS LEGALES */
/* ===================================== */

.form-section {
    background: linear-gradient(135deg, rgba(23,42,28,0.7) 0%, rgba(13,31,19,0.7) 100%); /* Fondo semitransparente oscuro */
    position: relative;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar el formulario vertical y horizontalmente */
    overflow: hidden;
}

/* Patrón de fondo sutil (comentado si no se usa la imagen) */
/*
.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}
*/

/* Contenedor del formulario/contenido legal */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(23, 42, 28, 0.8);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(123, 42, 5, 0.3);
}

/* Cabecera del formulario/sección */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff 0%, #e6e6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grupos de campos del formulario */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
}

/* Estilos para inputs de texto, email, tel y textareas */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(123, 42, 5, 0.3);
    border-radius: 8px;
    background: rgba(13, 31, 19, 0.5); /* Fondo oscuro semitransparente */
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Efecto focus para inputs y textareas */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B2A05; /* Borde de color principal al enfocar */
    box-shadow: 0 0 0 3px rgba(123, 42, 5, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical; /* Permite redimensionar verticalmente */
}

/* Grupos de radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
}

.radio-group label:hover {
    color: white;
}

/* Estilo para los radio buttons personalizados */
.radio-group input[type="radio"] {
    appearance: none; /* Oculta el radio button por defecto */
    width: 18px;
    height: 18px;
    border: 2px solid rgba(123, 42, 5, 0.5);
    border-radius: 50%;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0; /* Evita que el radio button se encoja */
}

.radio-group input[type="radio"]:checked {
    border-color: #7B2A05;
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #7B2A05;
    border-radius: 50%;
}

/* Opción "Otro" para métodos de contacto */
.other-option {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.other-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(123, 42, 5, 0.3);
    border-radius: 8px;
    background: rgba(13, 31, 19, 0.5);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.other-input:focus {
    outline: none;
    border-color: #7B2A05;
    box-shadow: 0 0 0 3px rgba(123, 42, 5, 0.2);
}

/* Mensajes de error para el formulario */
.error-message {
    color: #ff6b6b; /* Color rojo */
    font-size: 0.85rem;
    margin-top: 5px;
    display: block; /* Asegura que siempre ocupe espacio, aunque esté vacío */
    min-height: 18px; /* Altura mínima para evitar saltos de layout */
}

/* Botón de envío del formulario */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    background: linear-gradient(45deg, #5b200d, #8c4c3c);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(123, 42, 5, 0.4);
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 42, 5, 0.6);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #a53a0b, #7B2A05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span, 
.submit-btn i {
    position: relative;
    z-index: 1;
}

/* ANIMACIONES DEL FORMULARIO */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive del FORMULARIO */
@media (max-width: 768px) {
    .form-container {
        padding: 30px;
        margin: 0 20px; /* Asegura márgenes laterales en tablets */
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .other-option {
        flex-direction: column; /* Apila la opción "Otro" y su input */
        align-items: flex-start;
        gap: 8px;
    }
    
    .other-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 60px 0;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
}

/* ESTILOS PARA EL MENSAJE DE ÉXITO */
.success-message {
    text-align: center;
    padding: 30px;
    animation: fadeIn 0.5s ease-out;
}

.success-message i {
    font-size: 4rem;
    color: #4CAF50; /* Color verde para el éxito */
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.success-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contenido de texto general para páginas legales */
.content-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-text h3 {
    color: white;
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(123, 42, 5, 0.3);
    padding-bottom: 10px;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text ul {
    list-style: disc; /* Usar discos para las listas no ordenadas */
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-text ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-text ul li i {
    margin-right: 10px;
    color: #7B2A05;
}

.content-text a {
    color: #7B2A05; /* Enlaces en el texto principal */
    text-decoration: underline;
    transition: color 0.2s;
}

.content-text a:hover {
    color: #a53a0b;
}
/* ===================================== */
/* 15. DIVISORES DE SECCIÓN CON ONDAS    */
/* ===================================== */

.section-wave-divider {
    display: block;
    width: 100%;
    height: 60px; /* Altura de la onda. Puedes ajustarlo. */
    /* Asegura que el divisor se superponga ligeramente con las secciones
       para una transición suave y eliminar cualquier borde fino indeseado. */
    margin-top: -1px;
    margin-bottom: -1px;
    position: relative;
    z-index: 1; /* Para que la onda esté por encima del fondo de las secciones */
    overflow: hidden; /* Oculta cualquier desbordamiento de la onda */
}

/* Estilos para el SVG dentro del divisor de onda */
.section-wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}