/* === PERFORMANCE: Google Fonts cargadas desde HTML con media trick (no bloquea render) === */

:root {
    /* PALETA OFICIAL MONARKA71 - Actualizada según PALETA_COLORES.md */
    --primary-color: #441c05;
    /* Marrón Oscuro - Títulos principales */
    --secondary-color: #e8832b;
    /* Naranja/Cobre - Acentos, iconos */
    --hover-gold: #bfad93;
    /* Dorado - Estados hover */
    --text-dark: #333333;
    /* Gris Oscuro - Texto corporal */
    --text-light: #f8f9fa;
    /* Gris Claro - Fondos claros */
    --header-solid-bg: rgba(255, 255, 255, 0.95);
    /* Fondo sólido cuando se hace scroll */
    --dark-bg: #121212;
    /* Negro - Fondos oscuros, bordes */
    --white: #FFFFFF;
    /* Blanco Puro - Fondos */
    --white-soft: #fefefe;
    /* Blanco Roto - Fondos suaves */
    /* Variables de compatibilidad (mapean a paleta oficial) */
    --light-yellow: #e8832b;
    /* Usa Naranja en lugar de amarillo */
    --button-yellow: #e8832b;
    /* Usa Naranja para botones */
    --button-yellow-hover: #bfad93;
    /* Usa Dorado para hover */
}

* {
    margin: 0;
    /* */
    padding: 0;
    /* */
    box-sizing: border-box;
    /* */
}

body {
    font-family: 'Poppins', sans-serif;
    /* */
    line-height: 1.6;
    /* */
    color: var(--text-dark);
    /* */
    overflow-x: hidden;
    /* Evita el scroll horizontal */
    /* */
    scroll-behavior: smooth;
    /* */
    font-size: 16px;
    /* Base para rem */
    /* */
}

/* === PAGE LOADER - Auto-oculta con CSS (no depende de JS) === */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* Auto-oculta a los 2s: fade de 0.5s empezando en 1.5s */
    animation: loaderFadeOut 0.5s ease 1.5s forwards;
    pointer-events: none;
    /* No bloquea clics mientras existe */
}

/* El JS también puede ocultarlo más rápido si quiere */
#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    animation: none;
}

@keyframes loaderFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

#page-loader .loader-logo {
    width: 80px;
    animation: loaderPulse 1.2s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

#page-loader .loader-bar {
    width: 160px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

#page-loader .loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #e8832b, #f5a940);
    border-radius: 2px;
    animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.92);
        opacity: 0.75;
    }
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* === SKELETON SHIMMER (reutilizable) === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Globales y Utilidades --- */
.container {
    max-width: 1200px;
    /* */
    margin: 0 auto;
    /* */
    padding: 0 1rem;
    /* */
}

.section-title {
    font-size: 2.5rem;
    /* */
    font-weight: 700;
    /* */
    text-transform: uppercase;
    /* */
    margin-bottom: 1rem;
    /* */
    color: var(--text-dark);
    /* */
    text-align: center;
    /* Centrar títulos de sección */
}

.section-subtitle {
    font-size: 1rem;
    /* */
    color: var(--secondary-color);
    /* */
    margin-bottom: 0.5rem;
    /* */
    text-transform: uppercase;
    /* */
    text-align: center;
    /* Centrar subtítulos de sección */
    margin-bottom: 3rem;
    /* Espacio debajo del subtítulo */
}

.btn {
    display: inline-block;
    /* */
    padding: 0.8rem 1.8rem;
    /* */
    text-decoration: none;
    /* */
    border-radius: 5px;
    /* */
    font-weight: 600;
    /* */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* */
    text-transform: uppercase;
    /* */
    font-size: 0.9rem;
    /* */
}

.btn-primary {
    background-color: transparent;
    /* */
    border: 2px solid #fff;
    /* */
    color: #fff;
    /* */
}

.btn-primary:hover {
    background-color: var(--hover-gold);
    /* */
    border-color: var(--hover-gold);
    /* */
    color: var(--text-dark);
    /* */
}

.btn-secondary {
    background-color: #fff;
    /* */
    border: 2px solid #fff;
    /* */
    color: var(--text-dark);
    /* */
    margin-left: 1rem;
    /* */
}

.btn-secondary:hover {
    background-color: var(--hover-gold);
    /* */
    border-color: var(--hover-gold);
    /* */
    color: var(--text-dark);
    /* */
}

/* --- Header / Navegación --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background-color: #ffffff;
    /* Fondo BLANCO puro */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Sombra más moderna */
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos para cuando el header tiene scroll - solo se ajusta el padding, el fondo es estático */
.main-header.scrolled {
    padding: 0.8rem 3rem;
    /* Padding reducido al hacer scroll */
    /* */
    /* background-color y box-shadow ya están definidos y no cambian */
}

/* Colores de los elementos del header (logo, nav, iconos) */
.main-header .logo,
.main-header .header-right .icon-link {
    color: var(--text-dark);
    /* Texto oscuro sobre fondo blanco */
    transition: color 0.3s ease;
    /* */
}

/* Colores de los elementos del header cuando se hace scroll - no cambian ya que el fondo es estático */
.main-header.scrolled .logo,
.main-header.scrolled .header-right .icon-link {
    color: var(--text-dark);
    /* Se mantiene oscuro */
}

/* Hover de los enlaces del menú - siempre dorado */
.header-right .icon-link:hover {
    color: var(--hover-gold) !important;
    /* */
}

.logo {
    font-size: 2rem;
    /* */
    font-weight: 700;
    /* */
    text-decoration: none;
    /* */
}

.logo img {
    height: 40px;
    /* Ajusta la altura de tu logo según sea necesario */
    width: auto;
    vertical-align: middle;
}

/* --- ESTILOS PARA LOS BOTONES DE NAVEGACIÓN --- */
.main-nav ul {
    list-style: none;
    /* */
    display: flex;
    /* */
    gap: 1rem;
    /* Ajustar el espacio entre los "botones" */
    /* */
}

.main-nav a {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--primary-color);
    /* Borde marrón oscuro de la marca */
    border-radius: 50px;
    background-color: transparent;
    transition: all 0.3s ease;
    color: var(--primary-color);
    /* Texto marrón oscuro */
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Desactivar el efecto de subrayado original para los enlaces que ahora son botones */
.main-nav a::after {
    display: none;
    /* */
}

/* Hover de los enlaces del menú */
.main-nav a:hover {
    color: #ffffff;
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    /* Naranja Monarka al hacer hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 131, 43, 0.3);
}

/* Estilos de los botones cuando el header hace scroll (fondo sólido) - no cambian ya que el header es siempre sólido */
.main-header.scrolled .main-nav a {
    font-weight: bold;
    /* */
    border-color: var(--text-dark);
    /* Se mantiene el borde oscuro */
    background-color: transparent;
    /* Fondo transparente */
    /* */
    color: var(--text-dark);
    /* Texto oscuro */
}

.main-header.scrolled .main-nav a:hover {
    font-weight: bold;
    /* */
    background-color: var(--hover-gold);
    /* Fondo dorado al pasar el ratón */
    /* */
    border-color: var(--hover-gold);
    /* Borde dorado */
    /* */
    color: var(--text-dark);
    /* Texto oscuro al pasar el ratón */
    /* */
}

/* --- FIN DE ESTILOS PARA LOS BOTONES DE NAVEGACIÓN --- */


.header-right {
    display: flex;
    /* */
    align-items: center;
    /* */
    gap: 1.5rem;
    /* */
}

.header-right .icon-link {
    font-size: 1.2rem;
    /* */
    text-decoration: none;
    /* */
}


.menu-toggle {
    display: none;
    /* Oculto por defecto en desktop */
    /* */
}

/* --- Hero Section (no se usa en este caso, se mantiene el CSS original por si se reintroduce) --- */
.hero-section {
    position: relative;
    /* */
    width: 100vw;
    /* */
    height: 100vh;
    /* */
    display: flex;
    /* */
    justify-content: center;
    /* */
    align-items: center;
    /* */
    color: #fff;
    /* */
    text-align: center;
    /* */
    overflow: hidden;
    /* */
}

.hero-video {
    position: absolute;
    /* */
    top: 50%;
    /* */
    left: 50%;
    /* */
    min-width: 100%;
    /* */
    min-height: 100%;
    /* */
    width: auto;
    /* */
    height: auto;
    /* */
    transform: translate(-50%, -50%);
    /* */
    z-index: -2;
    /* */
    object-fit: cover;
    /* */
}

.video-overlay {
    position: absolute;
    /* */
    top: 0;
    /* */
    left: 0;
    /* */
    width: 100%;
    /* */
    height: 100%;
    /* */
    background-color: rgba(0, 0, 0, 0.5);
    /* Oscurecer el video */
    /* */
    z-index: -1;
    /* */
}

.hero-content {
    z-index: 1;
    /* */
    display: flex;
    /* */
    flex-direction: column;
    /* */
    align-items: center;
    /* */
    justify-content: center;
    /* */
    padding-top: 100px;
    /* Espacio para el header fijo */
    /* */
}

.hero-intro-text {
    font-size: 1.2rem;
    /* */
    margin-bottom: 0.5rem;
    /* */
    font-weight: 300;
    /* */
    opacity: 0.8;
    /* */
}

.hero-dynamic-text {
    font-size: 4rem;
    /* */
    font-weight: 700;
    /* */
    margin-bottom: 2rem;
    /* */
    text-transform: uppercase;
    /* */
    color: var(--hover-gold);
    /* El color del texto dinámico */
    /* */
}

/* Animación para el cambio de palabra */
.hero-dynamic-text span {
    display: inline-block;
    /* */
    opacity: 0;
    /* */
    transform: translateY(20px);
    /* */
    animation: fadeAndSlideIn 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    /* */
}

@keyframes fadeAndSlideIn {
    to {
        opacity: 1;
        /* */
        transform: translateY(0);
        /* */
    }
}

.hero-buttons {
    display: flex;
    /* */
    gap: 1rem;
    /* */
    margin-bottom: 4rem;
    /* */
}

.scroll-down-arrow {
    color: #fff;
    /* */
    font-size: 2rem;
    /* */
    animation: bounce 2s infinite;
    /* */
    position: absolute;
    /* */
    bottom: 2rem;
    /* */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
        /* */
    }

    40% {
        transform: translateY(-20px);
        /* */
    }

    60% {
        transform: translateY(-10px);
        /* */
    }
}

/* --- About Section (no se usa en este caso, se mantiene el CSS original por si se reintroduce) --- */
.about-section {
    padding: 6rem 0;
    /* Espaciado superior e inferior */
    /* */
    background-color: #f8f8f8;
    /* */
}

.about-container {
    display: flex;
    /* */
    align-items: center;
    /* */
    justify-content: center;
    /* */
    max-width: 1200px;
    /* */
    margin: 0 auto;
    /* */
    gap: 3rem;
    /* */
    padding: 0 1rem;
    /* */
}

.about-text-content {
    flex: 1;
    /* */
    padding-right: 2rem;
    /* Espacio entre texto e imagen */
    /* */
}

.about-text-content .section-title {
    font-size: 2rem;
    /* */
}

.about-description h3 {
    font-size: 1.5rem;
    /* */
    margin-bottom: 1rem;
    /* */
    color: var(--primary-color);
    /* O un color que combine */
    /* */
}

.about-description p {
    margin-bottom: 1rem;
    /* */
    font-size: 1rem;
    /* */
    color: #555;
    /* */
}

.signature {
    font-family: 'Dancing Script', cursive;
    /* Necesitaría importar esta fuente */
    /* */
    font-size: 1.8rem;
    /* */
    margin-top: 2rem;
    /* */
    color: var(--text-dark);
    /* */
}

.about-image-content {
    flex: 1;
    /* */
    display: flex;
    /* */
    justify-content: center;
    /* */
    align-items: center;
    /* */
}

.about-image {
    max-width: 100%;
    /* */
    height: auto;
    /* */
    border-radius: 10px;
    /* Bordes ligeramente redondeados */
    /* */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* */
}

/* --- Chat Button --- */
.chat-button {
    position: fixed;
    /* */
    bottom: 2rem;
    /* */
    right: 2rem;
    /* */
    z-index: 100;
    /* */
}

.btn-chat {
    background-color: #28a745;
    /* Verde de ejemplo */
    /* */
    color: #fff;
    /* */
    border: none;
    /* */
    padding: 0.8rem 1.5rem;
    /* */
    border-radius: 50px;
    /* Botón ovalado */
    /* */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* */
}

.btn-chat:hover {
    background-color: #218838;
    /* */
}

/* --- NUEVOS ESTILOS PARA EL BLOG (se mantiene el CSS original por si se reintroduce) --- */
.blog-section {
    padding: 6rem 0;
    /* */
    background-color: #fff;
    /* Fondo blanco para el blog */
    /* */
}

.blog-grid {
    display: grid;
    /* */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Columnas responsivas */
    /* */
    gap: 2rem;
    /* Espacio entre las entradas del blog */
    /* */
    margin-top: 2rem;
    /* */
}

.blog-post {
    background-color: #f8f8f8;
    /* Fondo ligero para cada entrada */
    /* */
    border-radius: 10px;
    /* */
    overflow: hidden;
    /* Asegura que la imagen no se salga */
    /* */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Sombra suave */
    /* */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* */
}

.blog-post:hover {
    transform: translateY(-5px);
    /* Pequeño efecto al pasar el ratón */
    /* */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    /* */
}

.post-image {
    width: 100%;
    /* */
    height: 200px;
    /* Altura fija para las imágenes */
    /* */
    object-fit: cover;
    /* Asegura que la imagen cubra el área sin distorsionarse */
    /* */
}

.post-content {
    padding: 1.5rem;
    /* */
}

.post-title {
    font-size: 1.5rem;
    /* */
    margin-bottom: 0.8rem;
    /* */
    color: var(--text-dark);
    /* */
}

.post-excerpt {
    font-size: 0.95rem;
    /* */
    color: #666;
    /* */
    margin-bottom: 1rem;
    /* */
    line-height: 1.7;
    /* */
}

.read-more {
    display: inline-block;
    /* */
    color: var(--hover-gold);
    /* Color dorado para el enlace */
    /* */
    text-decoration: none;
    /* */
    font-weight: 600;
    /* */
    font-size: 0.9rem;
    /* */
    transition: color 0.3s ease;
    /* */
}

.read-more:hover {
    color: var(--primary-color);
    /* Cambia a otro color al pasar el ratón */
    /* */
}

/* --- FIN DE NUEVOS ESTILOS PARA EL BLOG --- */

/* --- NUEVOS ESTILOS PARA LA SECCIÓN DE SERVICIOS (se mantiene el CSS original por si se reintroduce) --- */
.services-section {
    padding: 6rem 0;
    /* */
    background-color: var(--dark-bg);
    /* Fondo oscuro como en la imagen */
    /* */
    color: var(--text-light);
    /* Texto claro sobre fondo oscuro */
    /* */
    text-align: center;
    /* */
}

.services-intro-text {
    font-size: 1rem;
    /* */
    font-weight: 600;
    /* */
    text-transform: uppercase;
    /* */
    color: var(--light-yellow);
    /* Color amarillo como en la imagen */
    /* */
    margin-bottom: 0.5rem;
    /* */
}

.services-title {
    font-size: 3.5rem;
    /* Tamaño de fuente grande como en la imagen */
    /* */
    font-weight: 700;
    /* */
    text-transform: uppercase;
    /* */
    color: #fff;
    /* Blanco puro para el título principal */
    /* */
    margin-bottom: 4rem;
    /* Espacio debajo del título */
    /* */
    letter-spacing: 2px;
    /* Pequeño espaciado entre letras para el título */
    /* */
}

.services-grid {
    display: grid;
    /* */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 3 columnas en desktop, adaptativo */
    /* */
    gap: 2.5rem;
    /* Espacio entre los elementos de servicio */
    /* */
    max-width: 1000px;
    /* Limitar ancho de la cuadrícula */
    /* */
    margin: 0 auto;
    /* Centrar la cuadrícula */
    /* */
}

.service-item {
    background-color: transparent;
    /* Sin fondo en las tarjetas individuales */
    /* */
    padding: 1.5rem;
    /* */
    border-radius: 8px;
    /* */
    text-align: left;
    /* Texto alineado a la izquierda como en la imagen */
    /* */
}

.service-item i {
    font-size: 2rem;
    /* Tamaño de los iconos */
    /* */
    color: var(--light-yellow);
    /* Color amarillo para los iconos */
    /* */
    margin-bottom: 1rem;
    /* */
    display: block;
    /* Para que el icono ocupe su propia línea */
    /* */
}

.service-item h3 {
    font-size: 1.3rem;
    /* Tamaño del título del servicio */
    /* */
    font-weight: 600;
    /* */
    color: #fff;
    /* Blanco para el título del servicio */
    /* */
    margin-bottom: 0.8rem;
    /* */
}

.service-item p {
    font-size: 0.9rem;
    /* Tamaño del texto descriptivo */
    /* */
    color: #ccc;
    /* Gris claro para el texto */
    /* */
    line-height: 1.6;
    /* */
}

/* --- FIN DE NUEVOS ESTILOS PARA LA SECCIÓN DE SERVICIOS --- */


/* --- NUEVOS ESTILOS PARA LA SECCIÓN DE CARACTERÍSTICAS/CTA (se mantiene el CSS original por si se reintroduce) --- */
.features-section {
    display: flex;
    /* Para poner la imagen y el contenido uno al lado del otro */
    align-items: center;
    /* Centrar verticalmente el contenido */
    background-color: var(--dark-bg);
    /* Fondo oscuro para esta sección */
    color: var(--text-light);
    /* Texto claro */
    min-height: 60vh;
    /* Altura mínima para que se vea bien */
}

.features-image-col {
    flex: 1;
    /* Ocupa la mitad del espacio */
    overflow: hidden;
    /* Asegura que la imagen no se desborde */
    height: 100%;
    /* La columna de la imagen ocupa toda la altura disponible */
    display: flex;
    /* Para centrar la imagen si es necesario */
    justify-content: center;
    align-items: center;
}

.features-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cubre el área sin distorsión */
    filter: grayscale(100%);
    /* Poner la imagen en escala de grises */
    transition: filter 0.5s ease;
    /* Transición suave para el efecto de color */
}

.features-image:hover {
    filter: grayscale(0%);
    /* Quitar escala de grises al pasar el ratón */
}

.features-content-col {
    flex: 1;
    /* Ocupa la otra mitad del espacio */
    padding: 3rem 4rem;
    /* Espaciado interno */
    text-align: left;
    /* Alineación del texto a la izquierda */
}

.features-title {
    font-size: 2.8rem;
    /* Título grande */
    font-weight: 700;
    color: #fff;
    /* Blanco */
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.features-description {
    font-size: 1rem;
    color: #ccc;
    /* Gris claro para la descripción */
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.btn-features {
    background-color: var(--button-yellow);
    /* Color amarillo brillante para el botón */
    color: var(--text-dark);
    /* Texto oscuro en el botón */
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-features:hover {
    background-color: var(--button-yellow-hover);
    /* Oscurecer un poco al pasar el ratón */
    color: var(--text-dark);
}

/* --- FIN DE NUEVOS ESTILOS PARA LA SECCIÓN DE CARACTERÍSTICAS/CTA --- */

/* --- Breadcrumb/Mini Menú --- */
.breadcrumb-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    /* Fondo degradado suave */
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary-color);
    /* Línea naranja Monarka */
    margin-top: 80px;
    /* Espacio para el header fijo */
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    padding: 0 1rem;
    /* Mismo padding horizontal que el .container */
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list li {
    font-size: 0.9rem;
    color: #666;
    margin-right: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #ccc;
}

.breadcrumb-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li:last-child {
    color: var(--secondary-color);
    /* Naranja para el elemento activo */
    font-weight: 600;
}


/* --- Media Queries para Responsividad --- */

/* Tabletas y Laptops pequeñas */
@media (max-width: 1024px) {
    .main-header {
        padding: 1.5rem 2rem;
        /* */
    }

    /* En este breakpoint, el header se mantiene sólido y solo se ajusta el padding */
    /* */
    .main-header.scrolled {
        padding: 0.8rem 2rem;
        /* */
        /* background-color y box-shadow ya están definidos y no cambian */
    }

    .main-nav ul {
        gap: 0.8rem;
        /* Reducir el espacio entre los botones */
        /* */
    }

    .main-nav a {
        padding: 0.6em 1em;
        /* Ajustar padding para tabletas */
        /* */
        font-size: 0.7em;
        /* */
    }

    .main-nav a:hover {
        padding-right: 2em;
        /* Menor expansión en tabletas */
        /* */
        padding-left: 2em;
        /* */
    }

    .hero-dynamic-text {
        font-size: 3.5rem;
        /* */
    }

    .hero-buttons {
        flex-direction: column;
        /* Botones apilados en tabletas */
        /* */
        gap: 0.8rem;
        /* */
    }

    .btn-secondary {
        margin-left: 0;
        /* Eliminar margen para apilamiento */
        /* */
    }

    .about-container {
        flex-direction: column;
        /* Apilar contenido en la sección 'Acerca de' */
        /* */
        text-align: center;
        /* */
        gap: 2rem;
        /* */
    }

    .about-text-content {
        padding-right: 0;
        /* */
    }

    .about-image-content {
        order: -1;
        /* Mover la imagen arriba en la pila */
        /* */
    }

    .about-image {
        max-width: 80%;
        /* Asegurar que la imagen no sea demasiado ancha */
        /* */
    }

    .chat-button {
        bottom: 1.5rem;
        /* */
        right: 1.5rem;
        /* */
    }

    /* Blog en tabletas */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* Ajuste de columnas para tabletas */
        /* */
        gap: 1.5rem;
        /* */
    }

    .post-image {
        height: 180px;
        /* Ajuste de altura para imágenes de blog */
        /* */
    }

    .post-title {
        font-size: 1.3rem;
        /* */
    }

    /* Servicios en tabletas */
    .services-title {
        font-size: 3rem;
        /* Ajuste de tamaño de título */
        /* */
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* 2 columnas o más */
        /* */
        gap: 2rem;
        /* */
    }

    .service-item i {
        font-size: 1.8rem;
        /* Ajuste de tamaño de icono */
        /* */
    }

    .service-item h3 {
        font-size: 1.2rem;
        /* Ajuste de tamaño de título de servicio */
        /* */
    }

    .service-item p {
        font-size: 0.85rem;
        /* Ajuste de tamaño de texto */
        /* */
    }

    /* Características/CTA en tabletas */
    .features-section {
        flex-direction: column;
        /* Apilar imagen y contenido */
        padding: 4rem 0;
        /* Ajustar padding */
    }

    .features-image-col {
        width: 100%;
        height: 40vh;
        /* Altura fija para la imagen */
    }

    .features-content-col {
        padding: 3rem 2rem;
        /* Reducir padding */
        text-align: center;
        /* Centrar texto */
    }

    .features-title {
        font-size: 2.2rem;
    }

    .features-description {
        font-size: 0.95rem;
    }

    /* Breadcrumb en tabletas */
    .breadcrumb-section {
        margin-top: 60px;
        /* Ajuste de margen para header más pequeño */
    }
}

/* Teléfonos móviles */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem;
        /* */
        flex-wrap: wrap;
        /* Permite que los elementos se envuelvan */
        /* */
        justify-content: space-between;
        /* Ajustar de nuevo el justify-content */
        /* */
        /* Asegurarse de que el header esté sólido en móviles desde el principio para evitar problemas de contraste */
        /* */
        background-color: #fff;
        /* Fondo BLANCO estático en móviles */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        /* Sombra visible */
    }

    /* En móviles, la clase scrolled no cambiará el fondo, ya es sólido */
    /* */
    .main-header.scrolled {
        padding: 0.5rem 1rem;
        /* */
    }

    /* Colores del header en móviles - siempre oscuros porque el fondo es sólido blanco */
    /* */
    .main-header .logo,
    .main-header .header-right .icon-link {
        color: var(--text-dark);
        /* */
    }

    .main-nav {
        display: none;
        /* Oculta la navegación principal por defecto */
        /* */
        width: 100%;
        /* */
        order: 3;
        /* Asegura que el nav aparezca debajo cuando está visible */
        /* */
        background-color: #fff;
        /* Fondo blanco para el menú desplegado */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        /* */
    }

    .main-nav.active {
        /* Clase para mostrar el menú con JS */
        /* */
        display: block;
        /* */
    }

    .main-nav ul {
        flex-direction: column;
        /* */
        padding: 1rem 0;
        /* */
        gap: 0;
        /* */
    }

    .main-nav li {
        text-align: center;
        /* */
        padding: 0.5rem 0;
        /* */
    }

    .main-nav a {
        /* Desactivar la animación de expansión en móviles y volver a un estilo de enlace de texto */
        /* */
        padding-right: 0;
        /* */
        padding-left: 0;
        /* */
        border-color: transparent;
        /* */
        background-color: transparent;
        /* */
        color: var(--text-dark);
        /* Texto oscuro */
        font-size: 1rem;
        /* */
        border-radius: 0;
        /* */
        transition: none;
        /* Desactivar transiciones para menú móvil si no se necesitan */
        /* */
    }

    /* Ocultar el subrayado en el menú móvil para evitar desorden */
    /* */
    .main-nav a::after {
        display: none;
        /* */
    }

    /* Efecto al presionar para móviles */
    /* */
    .main-nav a:active {
        transform: scale(0.94);
        /* */
        transition: transform 100ms ease-out;
        /* Transición más rápida para feedback inmediato */
        /* */
    }

    .header-right {
        margin-left: auto;
        /* Empuja los iconos a la derecha */
        /* */
        gap: 1rem;
        /* */
    }

    .menu-toggle {
        display: block;
        /* Muestra el icono de hamburguesa */
        /* */
        font-size: 1.5rem;
        /* */
        color: var(--text-dark);
        /* Color oscuro para el icono de hamburguesa */
        cursor: pointer;
        /* */
    }

    .hero-intro-text {
        font-size: 1rem;
        /* */
    }

    .hero-dynamic-text {
        font-size: 2.5rem;
        /* */
        margin-bottom: 1.5rem;
        /* */
    }

    .hero-buttons {
        width: 90%;
        /* Ajuste de ancho para los botones */
        /* */
    }

    .btn {
        padding: 0.7rem 1.5rem;
        /* */
        font-size: 0.8rem;
        /* */
    }

    .scroll-down-arrow {
        font-size: 1.5rem;
        /* */
        bottom: 1rem;
        /* */
    }

    .about-section {
        padding: 4rem 0;
        /* */
    }

    .about-text-content .section-title {
        font-size: 1.8rem;
        /* */
    }

    .about-description h3 {
        font-size: 1.3rem;
        /* */
    }

    .about-description p {
        font-size: 0.9rem;
        /* */
    }

    .signature {
        font-size: 1.5rem;
        /* */
    }

    .chat-button {
        bottom: 1rem;
        /* */
        right: 1rem;
        /* */
    }

    .btn-chat {
        padding: 0.7rem 1.2rem;
        /* */
        font-size: 0.8rem;
        /* */
    }

    /* Blog en móviles */
    .blog-section {
        padding: 4rem 0;
        /* */
    }

    .blog-grid {
        grid-template-columns: 1fr;
        /* Una columna para móviles */
        /* */
        gap: 1.5rem;
        /* */
    }

    .post-image {
        height: 220px;
        /* Imágenes más grandes en móviles de una columna */
        /* */
    }

    .post-title {
        font-size: 1.4rem;
        /* */
    }

    /* Servicios en móviles */
    .services-title {
        font-size: 2.5rem;
        /* Ajuste de tamaño de título */
        /* */
        margin-bottom: 2rem;
        /* */
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Una columna para móviles */
        /* */
        gap: 1.5rem;
        /* */
    }

    .service-item {
        padding: 1rem;
        /* */
    }

    .service-item i {
        font-size: 1.6rem;
        /* Ajuste de tamaño de icono */
        /* */
    }

    .service-item h3 {
        font-size: 1.1rem;
        /* Ajuste de tamaño de título de servicio */
        /* */
    }

    .service-item p {
        font-size: 0.8rem;
        /* Ajuste de tamaño de texto */
        /* */
    }

    /* Características/CTA en móviles */
    .features-section {
        flex-direction: column;
        /* Asegura que se apile */
        padding: 3rem 0;
    }

    .features-image-col {
        height: 30vh;
        /* Altura más pequeña para la imagen en móvil */
    }

    .features-content-col {
        padding: 2rem 1.5rem;
        /* Menos padding */
    }

    .features-title {
        font-size: 1.8rem;
    }

    .features-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .btn-features {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Breadcrumb en móviles */
    .breadcrumb-section {
        margin-top: 50px;
        /* Ajuste de margen para header más pequeño */
    }

    .breadcrumb-list {
        padding: 0 1rem;
    }
}

/* Teléfonos muy pequeños */
@media (max-width: 480px) {
    .main-header {
        padding: 0.8rem 1rem;
        /* */
    }

    .main-header.scrolled {
        padding: 0.4rem 0.8rem;
        /* */
    }

    .logo {
        font-size: 1.5rem;
        /* */
    }

    .header-right {
        gap: 0.8rem;
        /* */
    }

    .header-right .icon-link {
        font-size: 1rem;
        /* */
    }

    .hero-dynamic-text {
        font-size: 2rem;
        /* */
    }

    .hero-buttons {
        width: 95%;
        /* */
    }

    .btn {
        padding: 0.6rem 1rem;
        /* */
        font-size: 0.75rem;
        /* */
    }

    .about-section {
        padding: 3rem 0;
        /* */
    }

    .about-text-content .section-title {
        font-size: 1.5rem;
        /* */
    }

    /* Blog en teléfonos muy pequeños */
    .post-image {
        height: 180px;
        /* */
    }

    .post-title {
        font-size: 1.2rem;
        /* */
    }

    .post-excerpt {
        font-size: 0.85rem;
        /* */
    }

    .read-more {
        font-size: 0.8rem;
        /* */
    }

    /* Servicios en teléfonos muy pequeños */
    .services-title {
        font-size: 2rem;
        /* Ajuste de tamaño de título */
        /* */
    }

    .service-item h3 {
        font-size: 1rem;
        /* Ajuste de tamaño de título de servicio */
        /* */
    }

    .service-item p {
        font-size: 0.75rem;
        /* Ajuste de tamaño de texto */
        /* */
    }

    /* Características/CTA en teléfonos muy pequeños */
    .features-title {
        font-size: 1.5rem;
    }

    .features-description {
        font-size: 0.8rem;
    }

    .btn-features {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Breadcrumb en teléfonos muy pequeños */
    .breadcrumb-section {
        margin-top: 40px;
        /* Ajuste de margen para header más pequeño */
    }

    .breadcrumb-list li {
        font-size: 0.8rem;
    }
}