/*
    *= require header
    *= require about_section
    *= require leasing_section
    *= require contact_section
    *= require leaders
    *= require services
    *= require products
    *= require blog_styles
    *= require pico_dark_override
 */

:root {
    --tacmex-green: #006B3F;
    --tacmex-red: #CE1126;
    --tacmex-white: #FFFFFF;
    --tacmex-dark: #0a0a0a;
    --tacmex-dark-gray: #1a1a1a;
    --tacmex-light-gray: #E5E5E5;

    /* Fuentes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Estilos generales */
body {
    font-family: var(--font-body);
    background-color: var(--tacmex-dark);
    color: var(--tacmex-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.tacmex-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* Estilos de sección */
section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 104px;
    bottom: -10px;
    left: 50%;
    transform: translateX(0);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    max-height: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tacmex-dark);
    position: relative;
    padding: 0;
}


/* Contenedor del video */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Video de fondo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 23, 30, 0.5); 
    z-index: 1;
}

.hero-content {
    width: 50%;
    padding: 0 3rem;
    position: relative;
    z-index: 3; 
}

/* Responsive para el video */
@media (max-width: 992px) {
    .hero-content {
        width: 100%;
        text-align: center;
        padding: 3rem;
    }
    
    .hero-video {
        object-position: center center;
    }
}

@media (max-width: 768px) {
    .hero-video-overlay {
        background: rgba(16, 23, 30, 0.6);
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

.hero-content {
    width: 50%;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

.hero-content .logo-container {
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 200px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    color: var(--tacmex-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin: 0.5rem 0 1.5rem;
    color: var(--tacmex-white);
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--tacmex-white);
    border-left: 3px solid var(--tacmex-red);
    padding-left: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
}

.button.primary {
    color: var(--tacmex-white);
    border: 15px solid var(--tacmex-white);
}

.button.primary:hover {
    background-color: (--tacmex-green);
    color: var(--tacmex-dark);
}

.button:not(.primary) {
    background-color: transparent;
    color: var(--tacmex-white);
    border: 2px solid var(--tacmex-white);
}

.button:not(.primary):hover {
    background-color: var(--tacmex-white);
    color: var(--tacmex-dark);
}

/* Services Section */
.services-section {
    background-color: var(--tacmex-dark);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/pattern.png");
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: var(--tacmex-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Products Section */
.products-section {
    background-color: var(--tacmex-dark-gray);
    position: relative;
}

.products-content {
    display: flex;
    gap: 3rem;
}

.products-list {
    flex: 1;
}

.products-images {
    flex: 1;
}

.product-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 400px;
}

.product-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.product-image-grid img:hover {
    transform: scale(1.05);
}

.product-image-grid img:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

/* =============================================
   SECCIÓN INTERNACIONAL - SOMOS LÍDERES
   ============================================= */
   
.international-section {
    background-color: var(--tacmex-dark);
    position: relative;
    padding: 0; /* Sin padding general */
}

/* Hero con imagen de fondo */
.international-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 900px;
    padding: 5rem 2rem;
    /* La imagen se pone inline en el HTML */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efecto parallax */
}

/* Overlay ligero para mejorar legibilidad */
.international-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay sutil con gradiente */
    background: linear-gradient(
        to right,
        rgba(16, 23, 30, 0.7) 0%,
        rgba(16, 23, 30, 0.4) 50%,
        rgba(16, 23, 30, 0.2) 100%
    );
    z-index: 1;
}

/* Contenedor interno con ancho máximo */
.international-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px; /* Aumentado para dar más espacio */
    margin: 0 auto;
}

/* Wrapper para estructura de columnas */
.international-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* Columna del texto - ocupa la mitad izquierda */
.international-text-column {
    flex: 1;
    max-width: 500px; /* Limita el ancho del texto */
}

/* Columna vacía para balance visual */
.international-empty-column {
    flex: 1;
}



/* El carrusel de clientes permanece separado */
.clients-section {
    margin-top: 4rem;
    padding: 0 2rem;
}

/* =============================================
   RESPONSIVE PARA SECCIÓN INTERNACIONAL
   ============================================= */
   
@media (max-width: 992px) {
    .international-hero {
        min-height: 350px;
        padding: 4rem 2rem;
        /* En tablets, quitamos el parallax por rendimiento */
        background-attachment: scroll;
    }
    
    .international-content-wrapper {
        gap: 2rem;
    }
    
    .international-text-column {
        max-width: 60%; /* Un poco más de espacio en tablets */
    }
}

@media (max-width: 768px) {
    .international-hero {
        min-height: 300px;
        padding: 3rem 1.5rem;
    }
    
    /* En móviles sí ocupa todo el ancho */
    .international-content-wrapper {
        flex-direction: column;
    }
    
    .international-text-column {
        max-width: 100%;
    }
    
    .international-empty-column {
        display: none;
    }
    
    .international-hero .international-text p {
        font-size: 1rem;
    }
    
    /* Overlay un poco más oscuro en móviles */
    .international-hero::before {
        background: rgba(16, 23, 30, 0.6);
    }
}

@media (max-width: 480px) {
    .international-hero {
        padding: 2.5rem 1rem;
    }
    
    .section-header-left .section-title {
        font-size: 1.75rem;
    }
}

.clients-section {
    margin-top: 4rem;
}

/* Contenedor principal del carrusel */
.clients-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 3rem;
}

/* Gradientes para efecto de desvanecimiento en los bordes */
.clients-carousel-container::before,
.clients-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, 
        #0A0A0A 0%, 
        rgba(5, 5, 5, 0.8) 30%,
        transparent 100%);
}

.clients-carousel-container::after {
    right: 0;
    background: linear-gradient(270deg, 
        #0A0A0A 0%, 
        rgba(0, 0, 0, 0.8) 30%,
        transparent 100%);
}

/* Contenedor del carrusel */
.clients-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Track con los logos */
.clients-track {
    display: flex;
    animation: scrollInfinite 45s linear infinite;
    width: fit-content;
}

/* Cada slide individual */
.client-slide {
    flex: 0 0 auto;
    width: 220px;
    padding: 1rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.client-slide:hover {
    transform: translateY(-5px);
}

/* Estilos de las imágenes */
.client-slide img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.client-slide:hover img {
    transform: scale(1.05);
}

/* Animación de scroll infinito */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Mueve exactamente el 50% para loop perfecto */
        transform: translateX(-50%);
    }
}

/* =============================================
   RESPONSIVE 
   ============================================= */
   
/* Tablets */
@media (max-width: 992px) {
    .client-slide {
        width: 180px;
        padding: 1rem 1.5rem;
    }
    
    .client-slide img {
        width: 100px;
        height: 100px;
    }
    
    /* Velocidad ligeramente más rápida en tablets */
    .clients-track {
        animation-duration: 40s;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .clients-carousel-container::before,
    .clients-carousel-container::after {
        width: 80px;
    }
    
    .client-slide {
        width: 150px;
        padding: 1rem;
    }
    
    .client-slide img {
        width: 80px;
        height: 80px;
    }
    
    /* Más rápido en móviles */
    .clients-track {
        animation-duration: 35s;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .clients-carousel-container {
        padding: 1.5rem 0 2rem;
    }
    
    .clients-carousel-container::before,
    .clients-carousel-container::after {
        width: 50px;
    }
    
    .client-slide {
        width: 120px;
        padding: 0.75rem;
    }
    
    .client-slide img {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    /* Aún más rápido en móviles pequeños */
    .clients-track {
        animation-duration: 30s;
    }
}

/* Accesibilidad - Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .clients-track {
        animation: none;
        /* Mostrar todos los logos estáticos en grid */
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .client-slide {
        flex: 0 0 200px;
    }
}



/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-section {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        width: 100%;
    }

    .hero-content {
        padding: 3rem;
    }

    .hero-image {
        height: 50vh;
    }

    .international-content,
    .contact-content,
    .products-content {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .international-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

/* Icons */
@font-face {
    font-family: 'tacmex-icons';
    src: url("../fonts/tacmex-icons.eot");
    src: url("../fonts/tacmex-icons.eot") format('embedded-opentype'),
    url("../fonts/tacmex-icons.woff2") format('woff2'),
    url("../fonts/tacmex-icons.woff") format('woff'),
    url("../fonts/tacmex-icons.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    font-family: 'tacmex-icons' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-phone:before { content: "\e942"; }
.icon-facebook:before { content: "\ea90"; }
.icon-instagram:before { content: "\ea92"; }
.icon-globe:before { content: "\e9c9"; }


/* Estilos para el Footer */
.site-footer {
    background-color: var(--tacmex-dark);
    padding: 3rem 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;    
    align-items: center;       
    gap: 1rem;              
    padding: 0 1rem;
    text-align: center;     
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 0.5rem 0;
    color: var(--tacmex-light-gray);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--tacmex-light-gray);
    color: var(--tacmex-light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--tacmex-white);
    color: var(--tacmex-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link i {
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-container {
        gap: 1rem;  
    }
}

/* =============================================
   FLASH MESSAGES (NOTIFICACIONES)
   ============================================= */

.notice, .alert {
    padding: 1rem 2rem;
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.notice {
    background-color: rgba(0, 107, 63, 0.9);
    color: var(--tacmex-white);
    border-bottom: 2px solid var(--tacmex-green);
}

.alert {
    background-color: rgba(206, 17, 38, 0.9);
    color: var(--tacmex-white);
    border-bottom: 2px solid var(--tacmex-red);
}

.flash-close {
    background: none;
    border: none;
    color: var(--tacmex-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-hide {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Hacer las imágenes clickeables */
.blog-card-image {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card-image:hover {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   PANEL DE ADMINISTRACIÓN
   ============================================= */

.admin-panel {
    background-color: rgba(0, 107, 63, 0.1);
    border-top: 1px solid var(--tacmex-green);
    padding: 1rem 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.admin-status {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--tacmex-green);
    font-weight: 500;
}

.admin-logout {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tacmex-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.admin-logout:hover {
    color: var(--tacmex-red);
    text-decoration: none;
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* =============================================
   PAGINACIÓN BLOG
   ============================================= */

.blog-pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Página actual */
.pagination-list .current {
    background-color: var(--tacmex-green);
    color: var(--tacmex-white);
}

/* Links normales */
.pagination-list a {
    color: var(--tacmex-white);
    border: 1px solid var(--tacmex-light-gray);
}

.pagination-list a:hover {
    background-color: var(--tacmex-green);
    border-color: var(--tacmex-green);
    color: var(--tacmex-white);
}

/* Botones prev/next */
.pagination-list .prev a,
.pagination-list .next a {
    background-color: transparent;
    color: var(--tacmex-green);
    border-color: var(--tacmex-green);
}

.pagination-list .prev a:hover,
.pagination-list .next a:hover {
    background-color: var(--tacmex-green);
    color: var(--tacmex-white);
}

/* Gap (puntos suspensivos) */
.pagination-list .gap {
    color: var(--tacmex-light-gray);
    pointer-events: none;
}

@media (max-width: 768px) {
    .pagination-list {
        gap: 0.25rem;
    }
    
    .pagination-list a,
    .pagination-list span {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* =============================================
   VISTAS DE AUTENTICACIÓN
   ============================================= */

.auth-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tacmex-white);
    margin: 0 0 0.5rem 0;
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--tacmex-green), var(--tacmex-red));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.auth-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--tacmex-light-gray);
    margin: 1rem 0 0 0;
}

.auth-form-container {
    background-color: var(--tacmex-dark-gray);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--tacmex-white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--tacmex-white);
    background-color: var(--tacmex-dark);
    border: 2px solid var(--tacmex-light-gray);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--tacmex-green);
    background-color: rgba(0, 107, 63, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.1);
}

.auth-form-control::placeholder {
    color: rgba(229, 229, 229, 0.6);
}

/* Checkbox para "Recordarme" */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox-input {
    width: auto;
    margin: 0;
}

.auth-checkbox-label {
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Texto de ayuda */
.auth-help-text {
    font-size: 0.8rem;
    color: var(--tacmex-light-gray);
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

/* Botón de envío */
.auth-form-actions {
    margin-top: 2rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Links de navegación */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--tacmex-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--tacmex-white);
    text-decoration: underline;
}

/* Mensajes de error */
.auth-form #error_explanation {
    background-color: rgba(206, 17, 38, 0.1);
    border: 1px solid var(--tacmex-red);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-form #error_explanation h2 {
    color: var(--tacmex-red);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.auth-form #error_explanation ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--tacmex-white);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 1rem;
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}

/* Link del título clickeable */
.blog-title-link {
    color: var(--tacmex-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: var(--tacmex-green);
    text-decoration: none;
}

/* imagen clickeable */
.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card-image a:hover {
    text-decoration: none;
    color: inherit;
}

/* =====  BOTÓN FLOTANTE DE CONTACTO  ===== */

.floating-contact-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 1rem;
}

/* Botón principal */
.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tacmex-green) 0%, #005533 100%);
    border: none;
    color: var(--tacmex-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 107, 63, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 107, 63, 0.6);
}

/* Texto del botón (aparece en hover) */
.floating-btn-text {
    position: absolute;
    right: 70px;
    background: var(--tacmex-dark-gray);
    color: var(--tacmex-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: var(--font-body);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-contact-btn:hover .floating-btn-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animación de pulso */
.floating-contact-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--tacmex-green);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Opciones expandibles */
.floating-contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Mostrar opciones cuando se hace hover en el wrapper */
.floating-contact-wrapper:hover .floating-contact-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Cada opción */
.floating-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--tacmex-dark-gray);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--tacmex-white);
    min-width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-option:hover {
    background: var(--tacmex-green);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 107, 63, 0.4);
    text-decoration: none;
    color: var(--tacmex-white);
}

/* Icono de la opción */
.option-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--tacmex-green);
    transition: all 0.3s ease;
}

.floating-option:hover .option-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--tacmex-white);
}

/* Texto de la opción */
.option-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.option-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.option-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Estilo especial para WhatsApp */
.floating-option.whatsapp:hover {
    background: #25D366;
}

.floating-option.whatsapp .option-icon {
    color: #25D366;
}

.floating-option.whatsapp:hover .option-icon {
    color: var(--tacmex-white);
}

/* Estado cerrado (cuando se hace click fuera) */
.floating-contact-wrapper.closed .floating-contact-options {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-contact-wrapper {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-contact-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .floating-btn-text {
        display: none; /* Ocultar texto en móvil */
    }
    
    .floating-option {
        min-width: 220px;
        padding: 0.6rem 0.8rem;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .option-title {
        font-size: 0.9rem;
    }
    
    .option-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .floating-contact-wrapper {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-option {
        min-width: 200px;
    }
}

/* =============================================
   NAVBAR RESPONSIVE SEGURO - SOLO HAMBURGUESA
   ============================================= */

/* Para pantallas grandes - navbar normal */
@media (min-width: 921px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: flex;
    }
}

/* ACTIVAR HAMBURGUESA A PARTIR DE 920px */
@media (max-width: 920px) {
    /* Ocultar navbar desktop */
    .main-nav {
        display: none;
    }
    
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--tacmex-white);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    /* Animación del botón hamburguesa */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Menú móvil activo */
    .main-nav.active {
        display: flex;
        position: fixed;
        top: 80px; /* Ajusta según la altura de tu header */
        left: 0;
        width: 100%;
        background: var(--tacmex-dark);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav.active ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-nav.active li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav.active li:last-child {
        border-bottom: none;
    }
    
    .main-nav.active li a {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        color: var(--tacmex-white);
        text-decoration: none;
        transition: all 0.3s ease;
        font-family: var(--font-heading);
        font-weight: 500;
    }
    
    .main-nav.active li a:hover {
        background: rgba(0, 107, 63, 0.1);
        color: var(--tacmex-green);
    }
    
    /* Botón de contacto especial en móvil */
    .main-nav.active li:last-child a {
        background: var(--tacmex-green);
        color: var(--tacmex-white);
        margin: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .main-nav.active li:last-child a:hover {
        background: #005533;
        color: var(--tacmex-white);
    }
}

/* Asegurar que el header tenga el z-index correcto */
.site-header {
    position: relative;
    z-index: 1002;
}

/* Prevenir scroll cuando el menú está abierto (opcional) */
body.menu-open {
    overflow: hidden;
}

/* Responsive para móviles muy pequeños */
@media (max-width: 480px) {
    .main-nav.active {
        top: 70px; /* Header más pequeño en móvil */
    }
    
    .main-nav.active li a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}