/*
 Theme Name: Zeta Theme
 Theme URI: https://codigoleft.com
 Description: Child theme de GeneratePress con Bootstrap y FontAwesome
 Author: codigoleft
 Author URI: https://codigoleft.com
 Template: generatepress
 Version: 1.0.0
*/

/************HEADER************/
:root {
    --primary-green: #0da7bb;
    --accent-red: #f95759;
    --dark-blue: #2b2c53;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Top Alert Banner */
.alert-banner {
    background-color: var(--primary-green);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.phone-btn {
    background-color: white;
    color: var(--primary-green);
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.social-icons a {
    color: white;
    margin-left: 10px;
    font-size: 20px;
    text-decoration: none;
}

/* Main Header */
.main-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.logo-container .custom-logo {
    max-height: 70px;
    width: auto;
}

.logo i {
    color: var(--accent-red);
    font-size: 42px;
    gap: 18px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--dark-blue);
}

.info-item i {
    color: var(--accent-red);
    font-size: 40px;
    width: 25px;
    text-align: center;
}

.info-text h6 {
    margin: 0;
    font-weight: bold;
    color: var(--dark-blue);
}

.info-text small {
    color: #666;
    margin: 0;
}

/* Mobile Header - Solo visible en móvil */
.mobile-header {
    display: none;
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-logo .logo {
    font-size: 20px;
}

.mobile-logo .logo i {
    font-size: 24px;
}

.mobile-logo .custom-logo {
    max-height: 50px;
    width: auto;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 10000;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-green);
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-dropdown.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    padding: 60px 20px 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10001;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    position: relative;
    display: block;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    transition: color 0.3s, background-color 0.3s;
    overflow: hidden;
}

/* Efectos hover iguales al desktop */
.mobile-nav-links a::before,
.mobile-nav-links a::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background-color: var(--primary-green);
    transition: width 0.9s ease;
}

.mobile-nav-links a::before {
    top: 0;
    left: 0;
}

.mobile-nav-links a::after {
    bottom: 0;
    right: 0;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a:hover::after,
.mobile-nav-links a.active::before,
.mobile-nav-links a.active::after {
    width: 100%;
    transition: width 0.9s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: white;
    background-color: var(--primary-green);
    transition: background-color 0.3s, color 0.3s;
    border-radius: 3px;
}

/* Navigation */
.navigation {
    background-color: white;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 100px;
    margin: 0;
    padding: 0;
    font-weight: 800;
    text-transform: uppercase;
    list-style: none;
}

.nav-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-buy {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #0a8a9a;
    color: white;
}

.btn-appointment {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-links a {
    font-size: 20px;
}

.btn-appointment:hover {
    background-color: #0a8a9a;
    color: white;
}

.nav-links li a {
    position: relative;
    display: inline-block;
    padding: 8px 15px;
    color: var(--dark-blue);
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s;
}

.nav-links li a::before,
.nav-links li a::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background-color: var(--primary-green);
    transition: width 0.9s ease;
}

.nav-links li a::before {
    top: 0;
    /* línea arriba */
    left: 0;
}

.nav-links li a::after {
    bottom: 0;
    /* línea abajo */
    right: 0;
}

/* Al pasar el mouse: las líneas se expanden */
.nav-links li a:hover::before,
.nav-links li a:hover::after,
.nav-links li a.active::before,
.nav-links li a.active::after {
    width: 100%;
    transition: width 0.9s ease;
}

/* Relleno de fondo desde la derecha hacia la izquierda */
.nav-links li a span {
    position: relative;
    z-index: 2;
}

.nav-links li a::after {
    z-index: 1;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: white;
    background-color: var(--primary-green);
    transition: background-color 0.3s, color 0.3s;
    border-radius: 3px;
    /* opcional para suavizar */
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {

    /* Ocultar main-header en móvil */
    .main-header {
        display: none;
    }

    /* Mostrar mobile-header en móvil */
    .mobile-header {
        display: block;
    }

    /* Ocultar navegación desktop en móvil */
    .navigation {
        display: none;
    }

    /* Mostrar dropdown móvil */
    .mobile-nav-dropdown {
        display: block;
    }

    .alert-banner .d-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .alert-banner .phone-btn {
        margin-bottom: 10px;
    }

    .alert-banner .social-icons {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .mobile-nav-content {
        width: 90%;
    }

    .alert-banner {
        font-size: 12px;
        padding: 5px 0;
    }

    .phone-btn {
        padding: 4px 12px;
        font-size: 12px;
    }

    .social-icons a {
        font-size: 16px;
        margin-left: 8px;
    }
}

/* =========================
   HERO / BANNER
========================= */
.hero {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    position: relative;
    height: 100%;
}

/* Imagen */
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* Caja de texto */
.texto-banner {
    position: absolute;
    bottom: 140px;
    left: 60px;
    z-index: 5;
    /* más alto que el overlay */
    background: rgba(13, 167, 187, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 500px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Texto */
.texto-banner h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.texto-banner p {
    margin: 0 0 12px;
    font-size: 1.2rem;
    text-align: justify;
    line-height: 1.4;
    opacity: 0.95;
}

/* Botón */
.btn-agendar {
    display: inline-block;
    background-color: #f95759;
    color: #fff !important;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(249, 87, 89, 0.3);
}

.btn-agendar:hover {
    background-color: #e74446;
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(249, 87, 89, 0.4);
    color: #fff !important;
}

.btn-agendar:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(249, 87, 89, 0.5);
}

/* Navegación */
.swiper-button-prev::after,
.swiper-button-next::after {
    color: rgba(255, 255, 255, 0.8);
    font-size: 33px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.swiper-button-prev,
.swiper-button-next {
    transition: all 0.3s ease;
}

/* =========================
   RESPONSIVE HERO SLIDER
========================= */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    .hero {
        height: 400px;
    }

    .texto-banner {
        left: 40px;
        bottom: 80px;
        max-width: 450px;
        padding: 18px 25px;
    }

    .texto-banner h2 {
        font-size: 1.4rem;
    }

    .texto-banner p {
        font-size: 1.1rem;
    }
}

/* Móviles grandes (768px hacia abajo) */
@media (max-width: 768px) {
    .hero {
        height: 350px;
    }

    .texto-banner {
        left: 20px;
        bottom: 30px;
        right: 20px;
        /* Importante: esto hace que se ajuste al ancho */
        max-width: none;
        /* Quitar max-width fijo */
        width: auto;
        /* Ancho automático */
        padding: 15px 20px;
        border-radius: 8px;
    }

    .texto-banner h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .texto-banner p {
        font-size: 0.95rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .btn-agendar {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 6px;
        margin-top: 12px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 28px;
    }
}

/* Móviles medianos (576px hacia abajo) */
@media (max-width: 576px) {
    .hero {
        height: 300px;
    }

    .texto-banner {
        left: 15px;
        bottom: 20px;
        right: 15px;
        padding: 12px 18px;
        border-radius: 6px;
    }

    .texto-banner h2 {
        font-size: 1.2rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .texto-banner p {
        font-size: 0.9rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .btn-agendar {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 5px;
        margin-top: 10px;
        letter-spacing: 0.3px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 24px;
    }
}

/* Móviles pequeños (480px hacia abajo) */
@media (max-width: 480px) {
    .hero {
        height: 280px;
    }

    .texto-banner {
        left: 12px;
        bottom: 15px;
        right: 12px;
        padding: 10px 15px;
        border-radius: 5px;
    }

    .texto-banner h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
        line-height: 1.1;
    }

    .texto-banner p {
        font-size: 0.85rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .btn-agendar {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 4px;
        margin-top: 8px;
    }

    .btn-agendar:hover {
        transform: translateY(-1px) scale(1.01);
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 20px;
    }
}

/* Móviles muy pequeños (360px hacia abajo) */
@media (max-width: 360px) {
    .hero {
        height: 250px;
    }

    .texto-banner {
        left: 10px;
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        border-radius: 4px;
    }

    .texto-banner h2 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .texto-banner p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .btn-agendar {
        padding: 6px 12px;
        font-size: 11px;
        margin-top: 6px;
    }
}

/* =========================
   MEJORAS ADICIONALES
========================= */

/* Animación suave para el contenido */
.texto-banner {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto parallax sutil en la imagen */
.hero img {
    transition: transform 8s ease-out;
}

.swiper-slide-active img {
    transform: scale(1.05);
}

/* Mejora de accesibilidad */
.btn-agendar:focus {
    outline: 3px solid rgba(249, 87, 89, 0.5);
    outline-offset: 2px;
}

/* Indicador de carga para cuando no hay imagen */
.swiper-slide:not(:has(img)) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Tablets en landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        height: 350px;
    }

    .texto-banner {
        bottom: 40px;
        left: 30px;
        right: 30px;
        max-width: 400px;
    }
}

/* Fix para pantallas muy anchas */
@media (min-width: 1400px) {
    .texto-banner {
        left: 80px;
        bottom: 160px;
        max-width: 600px;
        padding: 25px 35px;
    }

    .texto-banner h2 {
        font-size: 1.8rem;
    }

    .texto-banner p {
        font-size: 1.3rem;
    }
}

/*///////////
/* BLOG
/**¡¡¡¡¡¡¡¡¡/
    /* Estilos generales para el blog */
.btn-primary {
    background-color: #0da7bb;
    border-color: #0da7bb;
    color: white;
}

.btn-primary:hover {
    background-color: #0b8d9e;
    border-color: #0b8d9e;
}

.card-title a {
    color: #2b2c53;
    text-decoration: none;
}

.card-title a:hover {
    color: #f95759;
}

/* Estilos para el sidebar - CORREGIDO */
#right-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    /* Forzar que use el ancho completo del contenedor Bootstrap */
}

/* Sobrescribir estilos del tema que causan conflicto */
.is-right-sidebar {
    width: 100% !important;
    /* Anular el width: 30% del tema */
}

.widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Estilos para el widget de búsqueda */
.widget_search .wp-block-search__label {
    display: block;
    font-weight: 600;
    color: #2b2c53;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.widget_search .wp-block-search__inside-wrapper {
    display: flex;
    margin-bottom: 0;
    width: 100%;
    /* Asegurar que ocupe todo el ancho disponible */
}

.widget_search .wp-block-search__input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    height: auto;
    min-width: 0;
    /* Permitir que se comprima si es necesario */
}

.widget_search .wp-block-search__button {
    background-color: #0da7bb;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
    /* Evitar que el botón se comprima */
}

.widget_search .wp-block-search__button:hover {
    background-color: #0b8d9e;
}

/* Estilos para el widget de entradas recientes */
.widget_block .wp-block-heading {
    color: #2b2c53;
    font-size: 1.3rem;
    border-bottom: 2px solid #0da7bb;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.wp-block-latest-posts__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.wp-block-latest-posts__list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #dee2e6;
}

.wp-block-latest-posts__list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wp-block-latest-posts__post-title {
    color: #2b2c53;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.3s;
    word-wrap: break-word;
    /* Permitir que los títulos largos se rompan */
}

.wp-block-latest-posts__post-title:hover {
    color: #f95759;
}

/* Estilos para el widget de comentarios recientes */
.no-comments {
    color: #6c757d;
    font-style: italic;
}

/* Mejora para la paginación */
.page-numbers.current {
    background-color: #0da7bb;
    border-color: #0da7bb;
}

.page-numbers:hover:not(.current) {
    background-color: #f95759;
    border-color: #f95759;
    color: white;
}

/* Media queries para responsive */
@media (max-width: 991.98px) {
    #right-sidebar {
        margin-top: 30px;
    }
}

/* Asegurar que los widgets no se desborden */
.widget-area .widget {
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/************* CONTACTO *************/
.contacto-page {
    margin-top: 80px;
}

/* =========================
   FOOTER STYLES
========================= */

.main-footer {
    background-color: #2b2c53;
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
}

/* Footer Logo/Brand */
.footer-logo .custom-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.footer-brand i {
    color: #f95759;
    font-size: 30px;
}

.footer-brand:hover {
    color: #0da7bb;
    text-decoration: none;
}

/* Footer Description */
.footer-description {
    color: #b8b9c5;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Contact Info */
.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #b8b9c5;
}

.contact-item i {
    color: #f95759;
    font-size: 16px;
    width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer Titles */
.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #f95759;
}

/* Footer Links */
.footer-links {
    margin-top: 20px;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list a {
    color: #b8b9c5;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-menu-list a:hover {
    color: #0da7bb;
    text-decoration: none;
    padding-left: 8px;
}

.footer-menu-list a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: #f95759;
    transition: width 0.3s ease;
}

.footer-menu-list a:hover::before {
    width: 6px;
}

/* Recent Posts */
.recent-posts {
    margin-top: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(184, 185, 197, 0.1);
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-thumbnail {
    flex-shrink: 0;
}

.post-thumbnail img,
.post-thumbnail .no-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-thumbnail .no-image {
    background-color: #f95759;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.post-thumbnail:hover img,
.post-thumbnail:hover .no-image {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0da7bb;
    text-decoration: none;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-date,
.post-author {
    font-size: 12px;
    color: #b8b9c5;
}

.post-date i {
    margin-right: 5px;
    color: #f95759;
}

.post-author {
    color: #0da7bb;
    font-weight: 500;
}

.no-posts {
    color: #b8b9c5;
    font-size: 14px;
    font-style: italic;
}

/* Footer Social Row */
.footer-social-row {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(184, 185, 197, 0.1);
}

.social-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-text {
    color: #b8b9c5;
    margin: 0;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(184, 185, 197, 0.1);
    color: #b8b9c5;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icons a:hover {
    background-color: #f95759;
    color: #ffffff;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-footer-cta {
    background-color: #0da7bb;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-footer-cta:hover {
    background-color: #f95759;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 87, 89, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #1e1f3f;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(184, 185, 197, 0.1);
}

.copyright {
    color: #b8b9c5;
    font-size: 14px;
    margin: 0;
    text-align: left;
}

.copyright strong {
    color: #ffffff;
}

.developer-credit {
    color: #b8b9c5;
    font-size: 14px;
    margin: 0;
    text-align: right;
}

.developer-credit a {
    color: #0da7bb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: #f95759;
    text-decoration: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #f95759;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(249, 87, 89, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #0da7bb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 167, 187, 0.4);
}

/* =========================
   RESPONSIVE FOOTER
========================= */

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 0;
        margin-top: 40px;
    }

    .footer-section {
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }

    .recent-post-item {
        flex-direction: column;
        text-align: left;
    }

    .post-thumbnail {
        align-self: center;
    }

    .footer-social-row {
        margin-top: 30px;
        text-align: center;
    }

    .social-section {
        justify-content: center;
        margin-bottom: 20px;
    }

    .cta-section {
        justify-content: center;
    }

    .footer-bottom .row>div {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .main-footer {
        padding: 30px 0 0;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .contact-item {
        font-size: 13px;
    }

    .footer-menu-list a {
        font-size: 13px;
    }

    .recent-post-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .btn-footer-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Fix para GeneratePress */
.site-footer {
    display: none !important;
}

.main-footer {
    position: relative;
    z-index: 1;
}

/* Ocultar secciones específicas en móviles */
@media (max-width: 768px) {

    .main-footer .col-lg-2,
    .main-footer .col-lg-3:last-child {
        display: none !important;
    }
}

/* ============================================================
   PÁGINA TESTIMONIALES — page-testimoniales.php
   Colores: --primary-green:#0da7bb | --accent-red:#f95759 | --dark-blue:#2b2c53
============================================================ */

/* ── Hero ── */
.testi-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a1b3a 60%, #0a2a33 100%);
    min-height: 290px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.testi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230da7bb' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.testi-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(13, 167, 187, 0.18) 0%, transparent 65%);
}

.testi-hero .container {
    position: relative;
    z-index: 2;
    padding: 60px 15px;
}

.testi-badge {
    display: inline-block;
    background: rgba(13, 167, 187, 0.25);
    border: 1px solid rgba(13, 167, 187, 0.5);
    color: #7ee9f5;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.testi-hero-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.15;
}

.testi-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Stats Strip ── */
.testi-stats-strip {
    background: var(--primary-green);
    padding: 24px 0;
}

.testi-stat {
    padding: 12px 20px;
    border-right: 1px solid rgba(255, 255, 255, .25);
}

.testi-stat:last-child {
    border-right: none;
}

.testi-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.testi-stat-label {
    display: block;
    font-size: .78rem;
    color: rgba(255, 255, 255, .85);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 4px;
}

/* ── Section Header ── */
.testi-grid-section {
    padding: 70px 0 80px;
    background: #f7fafc;
}

.testi-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.testi-section-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.testi-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-red));
    border-radius: 4px;
}

.testi-section-sub {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* ── Grid ── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ── Card ── */
.testi-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 28px;
    box-shadow: 0 4px 20px rgba(43, 44, 83, .07);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    transform: translateY(30px);
    border-top: 4px solid var(--primary-green);
}

.testi-card.testi-card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s ease, transform .55s ease, box-shadow .3s ease;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(13, 167, 187, .15);
}

.testi-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at bottom right, rgba(13, 167, 187, .08), transparent 70%);
    border-radius: 50%;
}

.testi-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.testi-quote-icon {
    font-size: 1.8rem;
    color: var(--primary-green);
    opacity: .7;
}

.testi-stars {
    color: #f9a825;
    font-size: .85rem;
    letter-spacing: 2px;
}

.testi-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin: 0 0 24px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #eef0f3;
    padding-top: 18px;
}

.testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-green), #20b2aa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-author-info strong {
    display: block;
    color: var(--dark-blue);
    font-size: .95rem;
    font-weight: 700;
}

.testi-author-info span {
    display: block;
    color: var(--primary-green);
    font-size: .8rem;
    font-weight: 500;
    margin-top: 2px;
}

/* ── Empty state ── */
.testi-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.testi-empty i {
    font-size: 3.5rem;
    color: var(--primary-green);
    opacity: .5;
    display: block;
    margin-bottom: 16px;
}

/* ── Form Section ── */
.testi-form-section {
    padding: 70px 0 80px;
    background: #fff;
}

.testi-form-box {
    background: #f7fafc;
    border-radius: 22px;
    padding: 48px 44px;
    box-shadow: 0 6px 40px rgba(43, 44, 83, .09);
    border: 1px solid #e2ecf0;
}

.testi-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.testi-form-header i {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 14px;
    display: block;
}

.testi-form-header h2 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0 0 10px;
}

.testi-form-header p {
    color: #6c757d;
    font-size: .97rem;
    margin: 0;
}

.testi-label {
    display: block;
    font-size: .87rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.testi-label span {
    color: var(--accent-red);
}

.testi-input {
    width: 100%;
    border: 2px solid #dde6ea;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .95rem;
    color: #333;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.testi-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(13, 167, 187, .12);
}

.testi-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Cloudflare Turnstile widget ── */
.testi-turnstile-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.testi-turnstile-note {
    font-size: .78rem;
    color: #9aa5b0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.testi-turnstile-note i {
    color: #f6821f;
    font-size: .88rem;
}

/* naranja Cloudflare */
.testi-turnstile-note a {
    color: var(--primary-green);
    text-decoration: none;
}

.testi-turnstile-note a:hover {
    text-decoration: underline;
}

.testi-submit-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, #0a8a9a 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 38px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 18px rgba(13, 167, 187, .35);
    font-family: inherit;
    margin-top: 10px;
}

.testi-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 167, 187, .45);
}

.testi-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes del formulario */
.testi-form-message {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: .93rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.testi-msg-success {
    background: rgba(13, 167, 187, .1);
    border: 1px solid rgba(13, 167, 187, .35);
    color: #0a6f7e;
}

.testi-msg-error {
    background: rgba(249, 87, 89, .1);
    border: 1px solid rgba(249, 87, 89, .35);
    color: #c0393a;
}

/* ── CTA Strip ── */
.testi-cta-strip {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a1b3a 100%);
    padding: 44px 0;
}

.testi-cta-strip h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.testi-cta-strip p {
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
    margin: 0;
}

.testi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-red);
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .97rem;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 18px rgba(249, 87, 89, .35);
}

.testi-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 87, 89, .45);
    color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .testi-stats-strip .testi-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .testi-stats-strip .testi-stat:last-child {
        border-bottom: none;
    }

    .testi-form-box {
        padding: 32px 20px;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .testi-turnstile-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .testi-hero .container {
        padding: 48px 15px;
    }

    .testi-cta-strip {
        text-align: center;
    }
}