/*
Theme Name: BCV Theme
Description: Tema personalizado para BCV - Bombas, Cañerías y Válvulas
Version: 1.0
Author: BCV Team
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #333333;
}

/* Contenedor principal - fondo oscuro para resaltar el header */
#main-content {
    background-color: #0a0a0a;
    min-height: 100vh;
}

/* Header Styles */
.site-header {
    background-color: #2c2c2c !important;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid #e0e0e0 !important;
    border-top: none !important;
    border-radius: 0 0 20px 20px;
    width: 100%;
    margin: 0 auto;
}

/* Forzar fondo oscuro en todos los casos */
body .site-header,
html .site-header,
.site-header {
    background: #2c2c2c !important;
    background-color: #2c2c2c !important;
    border: 3px solid #e0e0e0 !important;
    border-top: none !important;
    border-radius: 0 0 20px 20px !important;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 50px;
}

.logo-image {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    vertical-align: middle;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-image {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    vertical-align: middle;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.logo-subtitle {
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin-top: 1px;
    font-weight: 400;
}

.main-navigation {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #e31e24;
}

.social-icons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    justify-content: flex-end;
}

.social-icon {
    display: inline-flex !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
    background-color: #EFEFEF !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin: 0 0px !important;
    overflow: visible;
}

.social-icon:hover {
    opacity: 0.8;
    background-color: #555 !important;
}

.social-icon-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    object-fit: contain !important;
    object-position: center center !important;
    /* Sin filtro - mostrar imágenes en su color original (negro) */
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    /* Forzar renderizado */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    /* Asegurar que la imagen se renderice */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

/* Reglas adicionales para asegurar visibilidad de imágenes */
.social-icon img,
.social-icon .social-icon-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    /* Sin filtro - mostrar imágenes en su color original */
}

/* Regla específica para asegurar que LinkedIn se muestre */
.social-icon img[alt="LinkedIn"],
.social-icon .social-icon-img[alt="LinkedIn"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Sin filtro - mostrar en color original */
}

.icon-instagram,
.icon-linkedin,
.icon-youtube {
    font-size: 16px;
    line-height: 1;
    color: #fff;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-title-wrapper {
    position: relative;
    flex: 1;
}

.hero-slide .hero-title-bg-img {
    position: absolute;
    height: 500px;
    width: auto;
    object-fit: contain;
    opacity: 0.2;
    top: 80%;
    left: -100px;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
    filter: brightness(0) invert(1) !important;
}

.hero-title {
    font-size: 80px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-description {
    flex: 1;
    max-width: 400px;
    color: #fff;
    margin-left: 40px;
}

.hero-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e31e24;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #c41a1f;
}

.btn-secondary {
    display: inline-block;

    background-color: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateX(10px);
    color: #e31e24;
    background-color: #e8e8e8;
}



.btn-white {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 60px;
    font-weight: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.slider-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 40px;
}

.slider-nav.next {
    right: 40px;
}

/* Intro Text Section */
.intro-section {
    background-color: #333;
    padding: 60px 20px;
    text-align: center;
}

.intro-section p {
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
}

/* Three Column Features */
.features-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 480px; /* Tamaño unificado para todos */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    color: #333;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e31e24 0%, #c41a1f 100%);
    color: #fff;
}

.feature-card:hover .feature-icon-img {
    opacity: 0.2;
    filter: grayscale(100%) brightness(2);
    transform: translate(-50%, -55%) scale(1.1);
}

.feature-card:hover .feature-title {
    color: #fff;
}

.feature-card:hover .feature-description {
    color: rgba(255, 255, 255, 0.95);
}

.feature-card:hover .feature-card-footer {
    opacity: 1;
    transform: translateY(0);
    background-color: #000;
}

.feature-card.featured {
    background: linear-gradient(135deg, #e31e24 0%, #c41a1f 100%);
    color: #fff;
    height: 480px; /* Mismo tamaño que los laterales */
    transform: none; /* Eliminar escala por defecto */
}

.feature-card.featured .feature-icon-img {
    opacity: 0.15;
    filter: grayscale(100%) brightness(2);
}

.feature-card.featured .feature-title {
    color: #fff;
}

.feature-card.featured .feature-description {
    color: rgba(255, 255, 255, 0.9);
}

/* EFECTO INVERSO PARA LA TARJETA CENTRAL */
.feature-card.featured:hover {
    transform: translateY(-10px);
    background: #e8e8e8; /* Cambia a gris como los otros */
    color: #333;
}

.feature-card.featured:hover .feature-icon-img {
    opacity: 0.1;
    filter: grayscale(100%) brightness(0.5);
    transform: translate(-50%, -55%) scale(1.1);
}

.feature-card.featured:hover .feature-title {
    color: #1a1a1a;
}

.feature-card.featured:hover .feature-description {
    color: #444;
}

.feature-card.featured:hover .feature-card-footer {
    background-color: #1a1a1a; /* Footer oscuro para el estado gris */
}

.feature-card-inner {
    flex: 1;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinear al principio para control total */
    position: relative;
    overflow: hidden;
}

.feature-icon,
.feature-icon-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    position: absolute;
    top: 140px; /* Posición fija para la imagen */
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card.featured .feature-icon,
.feature-card.featured .feature-icon-img {
    opacity: 0.15;
    filter: grayscale(100%) brightness(2);
}

.feature-title {
    font-size: 36px;
    font-weight: 900;
    margin-top: 90px; /* El título queda frente a la imagen */
    margin-bottom: 110px; /* Espacio exacto para que el texto empiece abajo de la imagen */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    color: #1a1a1a;
}

.feature-card.featured .feature-title {
    color: #fff;
}

.feature-description {
    line-height: 1.6;
    font-size: 15px;
    position: relative;
    z-index: 2;
    color: #444;
    max-width: 280px;
    margin: 0 auto;
}

.feature-card.featured .feature-description {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card:hover .feature-icon-img {
    opacity: 0.2;
    transform: translate(-50%, -55%) scale(1.1);
}

.feature-card.featured:hover .feature-icon-img {
    opacity: 0.1;
    filter: grayscale(100%) brightness(0.5);
}

.feature-card-footer {
    background-color: #1a1a1a;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card-footer {
    background-color: #000;
}

.feature-card.featured .feature-card-footer {
    background-color: #000;
}

.feature-card.featured:hover .feature-card-footer {
    background-color: #1a1a1a;
}

.feature-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.feature-btn:hover {
    transform: translateX(5px);
}

/* Quienes Somos Section */
.about-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f5f5f5;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .highlight {
    color: #e31e24;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.8;
}

.about-text-container {
    max-width: 800px;
    margin: 0 auto 30px;
}

.about-text-preview {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 800px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.6s ease;
}

.about-text-preview.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.about-toggle-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Porque BCV Section */
.why-section {
    padding: 100px 20px;
    background-color: #1a1a1a; /* Fondo oscuro como en la imagen */
    color: #fff;
    scroll-margin-top: 100px;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}

.why-header {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-title {
    font-size: 42px;
    font-weight: 900;
    color: #e31e24; /* Color rojo para ¿Porque? */
    margin-bottom: 5px;
    text-transform: none;
}

.why-logo-img {
    max-width: 350px;
    height: auto;
    margin-left: 20px; /* Desplazamiento como en la imagen */
}

.why-logo-text {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    margin-left: 20px;
    letter-spacing: -5px;
}

.why-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
}

.why-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    text-align: left;
}

.why-text-container {
    margin-bottom: 30px;
}

.why-text-preview {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.6s ease;
}

.why-text-preview.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.why-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.why-btn:hover {
    transform: translateX(10px);
    color: #e31e24;
}

/* Actividades Section */
.activities-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.activities-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.activities-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 30, 36, 0.8);
    z-index: 1;
}

.activities-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.activities-content .section-title {
    color: #fff;
    margin-bottom: 30px;
}

/* Sección de Contacto */
.contact-section {
    padding: 100px 20px;
    background-color: #f5f5f5;
    scroll-margin-top: 100px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #e31e24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item-content {
    flex: 1;
}

.contact-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-item-text a {
    color: #e31e24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-text a:hover {
    color: #c41a1f;
    text-decoration: underline;
}

/* Formulario de Contacto */
.contact-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    color: #000;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #e31e24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    margin-top: 10px;
}

.form-input.error,
.form-textarea.error {
    border-color: #e31e24;
}

.form-error {
    display: block;
    color: #e31e24;
    font-size: 14px;
    margin-top: 5px;
}

.contact-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .contact-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* Footer */
.site-footer {
    background-color: #333;
    padding: 40px 20px;
    color: #fff;
    display: block;
    visibility: visible;
    width: 100%;
    position: relative;
    z-index: 1;
}

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

.footer-logo .logo-main {
    font-size: 24px;
    color: #fff;
}

.footer-logo-image {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-text {
    flex: 1;
    margin: 0 40px;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.footer-text p {
    margin: 0;
    color: #fff;
}

.footer-logo .logo-main,
.footer-logo .logo-subtitle {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* Forzar estilos del header en todos los contextos */
header.site-header,
body header.site-header,
html body header.site-header {
    background: #EFEFEF !important;
    background-color: #EFEFEF !important;
}

/* Publireportaje Styles */
/* Asegurar fondo blanco en el body para publireportajes */
body.page-template-page-publireportaje-bombas,
body.page-template-page-publireportaje-canerias,
body.page-template-page-publireportaje-valvulas {
    background-color: #fff !important;
}

body.page-template-page-publireportaje-bombas #main-content,
body.page-template-page-publireportaje-canerias #main-content,
body.page-template-page-publireportaje-valvulas #main-content {
    background-color: #fff !important;
    min-height: auto;
}

/* Asegurar que el footer se muestre en publireportajes */
body.page-template-page-publireportaje-bombas .site-footer,
body.page-template-page-publireportaje-canerias .site-footer,
body.page-template-page-publireportaje-valvulas .site-footer {
    background-color: #333 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    margin-top: 0 !important;
    clear: both !important;
}

/* Asegurar que el footer se muestre en todas las páginas */
.site-footer {
    display: block !important;
    visibility: visible !important;
}

.publi-hero-section {
    position: relative;
    min-height: 600px;
    height: 70vh;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8C2222;
    width: 100%;
}

.publi-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.8;
}

/* Overlay con gradiente radial para difuminar la imagen desde la derecha hacia abajo-izquierda */
.publi-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente radial que crea el efecto de difuminado desde la derecha hacia abajo-izquierda */
    background: 
        radial-gradient(
            ellipse 140% 180% at 90% 20%,
            rgba(140, 34, 34, 0.2) 0%,
            rgba(140, 34, 34, 0.4) 25%,
            rgba(140, 34, 34, 0.6) 45%,
            rgba(140, 34, 34, 0.8) 65%,
            rgba(140, 34, 34, 0.95) 85%,
            #8C2222 100%
        );
    z-index: 2;
}

.publi-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    color: #fff;
    text-align: left;
}

.publi-hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.publi-hero-description {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.publi-content-section {
    background-color: #fff !important;
    padding: 100px 20px;
    min-height: 400px;
}

.publi-content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.publi-content-block {
    margin-bottom: 80px;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.publi-content-block:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.publi-block-title {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a !important;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
}

.publi-block-text {
    font-size: 18px;
    line-height: 1.9;
    color: #333 !important;
    margin-bottom: 40px;
}

.publi-block-text p {
    margin-bottom: 20px;
    color: #333 !important;
}

.publi-block-text p:last-child {
    margin-bottom: 0;
}

.publi-block-text * {
    color: #333 !important;
}

.publi-block-text-after-image {
    margin-top: 40px;
    margin-bottom: 0;
}

.publi-block-image {
    margin: 50px 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.publi-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.publi-webinar-section {
    background: linear-gradient(135deg, #e31e24 0%, #c41a1f 100%);
    padding: 100px 20px;
    color: #fff;
}

.publi-webinar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.publi-webinar-content {
    display: flex;
    flex-direction: column;
}

.publi-webinar-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1;
}

.publi-webinar-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.publi-webinar-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

.publi-webinar-video iframe,
.publi-webinar-video embed,
.publi-webinar-video object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.publi-video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: 18px;
}

/* Responsive para Publireportajes */
@media (max-width: 1024px) {
    .publi-hero-section {
        min-height: 500px;
        height: 60vh;
    }
    
    .publi-hero-title {
        font-size: 48px;
    }
    
    .publi-hero-description {
        font-size: 18px;
    }
    
    .publi-content-section {
        padding: 80px 20px;
    }
    
    .publi-block-title {
        font-size: 36px;
    }
    
    .publi-webinar-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .publi-webinar-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .publi-hero-section {
        min-height: 400px;
        height: 50vh;
    }
    
    .publi-hero-content {
        padding: 40px 20px;
        text-align: center;
    }
    
    .publi-hero-title {
        font-size: 36px;
        letter-spacing: 1px;
    }
    
    .publi-hero-description {
        font-size: 16px;
        max-width: 100%;
    }
    
    .publi-content-section {
        padding: 60px 20px;
    }
    
    .publi-content-block {
        margin-bottom: 60px;
        padding: 30px 0;
    }
    
    .publi-block-title {
        font-size: 28px;
    }
    
    .publi-block-text {
        font-size: 16px;
    }
    
    .publi-block-image {
        margin: 30px 0;
    }
    
    .publi-webinar-section {
        padding: 60px 20px;
    }
    
    .publi-webinar-title {
        font-size: 42px;
        letter-spacing: 2px;
    }
    
    .publi-webinar-description {
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-container {
        gap: 20px;
        padding: 0 10px;
    }
    
    .feature-card {
        height: 450px;
    }
    
    .feature-title {
        font-size: 28px;
        margin-top: 70px;
        margin-bottom: 80px;
    }
    
    .why-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .social-icons {
        justify-content: center;
    }

    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Hero Carrusel */
    .hero-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-slide .hero-title-bg-img {
        height: 300px;
        left: 50%;
        transform: translate(-50%, -50%);
        top: 40%;
    }

    .hero-description {
        margin-left: 0;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }

    /* Tarjetas de Características - Efectos en Móvil */
    .features-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        height: auto;
        min-height: 400px;
        /* En móvil, forzamos que el botón sea visible si no hay hover real */
        padding-bottom: 80px;
    }
    
    .feature-card-footer {
        opacity: 1;
        transform: translateY(0);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    /* ¿Porque? Section */
    .why-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .why-header {
        flex: 0 0 auto;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .why-logo-img {
        margin-left: 0;
        max-width: 250px;
    }
    
    .why-content {
        padding-top: 0;
        align-items: center;
    }
    
    .why-text {
        text-align: center;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-text {
        margin: 0;
    }
}

/* Soporte para Tablets y dispositivos táctiles (forzar efectos) */
@media (hover: none) {
    .feature-card-footer {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .feature-card.featured {
        background: linear-gradient(135deg, #e31e24 0%, #c41a1f 100%) !important;
        color: #fff !important;
    }
    
    .feature-card.featured .feature-title,
    .feature-card.featured .feature-description {
        color: #fff !important;
    }
}

/* Página de Actividades */
.activities-page-section {
    background-color: #fff;
    padding: 80px 20px;
    min-height: 100vh;
}

.activities-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.activities-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.activities-page-subtitle {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 300;
}

.activities-page-title {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.activities-page-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.decoration-line {
    width: 60px;
    height: 3px;
    background-color: #e31e24;
}

.decoration-arrow {
    color: #e31e24;
    font-size: 20px;
    font-weight: bold;
}

/* Grid de Actividades */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.activity-image-wrapper {
    width: 100%;
    padding-top: 100%; /* Mantiene proporción cuadrada */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.activity-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.activity-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.activity-info-block {
    background-color: #e31e24;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-top: auto;
}

.activities-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .activities-page-section {
        padding: 60px 20px;
    }
    
    .activities-page-title {
        font-size: 32px;
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .activities-page-title {
        font-size: 24px;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
