/* Variables de Color - Cualicuanti */
:root {
    --primary: #0066CC;
    --primary-light: #1080FF;
    --secondary: #003366;
    --accent: #0066CC;
    --light: #F5F8FF;
    --dark: #003366;
    --text: #333333;
    --gray: #666666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 102, 204, 0.12);
    --shadow-hover: 0 15px 40px rgba(0, 102, 204, 0.2);
}

/* Restaurar legibilidad en las tarjetas de metodología */
.metodologia .metodo-item,
.metodologia .metodo-item p,
.metodologia .metodo-item h4,
.metodologia .metodo-item .card-link {
    color: inherit;
}

.metodologia .metodo-item p {
    color: var(--gray) !important;
}

.metodologia .metodo-item h4 {
    color: var(--dark) !important;
}

.metodologia .metodo-item .card-link {
    color: var(--primary) !important;
}

/* Hover específico: forzar blanco en los textos de las tarjetas al pasar el mouse */
.metodologia .metodo-item:hover,
.metodologia .metodo-item:hover p,
.metodologia .metodo-item:hover h4,
.metodologia .metodo-item:hover .card-link,
.metodologia .metodo-item:hover .metodo-letra {
    color: #ffffff !important;
}

.metodologia .metodo-item .card-link {
    transition: color 0.2s ease;
}

/* Fix: asegurar texto blanco en la sección metodología (sobrescribe cache/otras reglas) */
.metodologia .info-box,
.metodologia .info-box p,
.metodologia .info-box a,
.metodologia .info-box h3 {
    color: #ffffff !important;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--gray);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0088b8 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #0088b8 0%, var(--primary) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* Navegación */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.logo-animated {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.8rem;
    animation: rotateLogo 20s linear infinite;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo-animated:hover .logo-circle {
    animation: rotateLogo 10s linear infinite;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.logo-animated:hover .logo-text {
    color: var(--primary-light);
    letter-spacing: 3px;
}

/* Logo de Imagen */
.logo-img {
    max-width: 250px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    filter: brightness(1.15);
}

@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Barra de Búsqueda */
.nav-search {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    gap: 10px;
}

.nav-search:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.2);
}

.nav-search:focus-within {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e6f2ff 0%, #d6e8ff 100%);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.25);
}

.nav-search input {
    border: none;
    background: transparent;
    padding: 10px 5px;
    font-size: 0.95rem;
    min-width: 200px;
    color: var(--text);
    outline: none;
    font-weight: 500;
}

.nav-search input::placeholder {
    color: #999;
    font-weight: 500;
}

.nav-search button {
    background: linear-gradient(135deg, var(--primary) 0%, #0088b8 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.nav-search button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0088b8 0%, var(--primary) 100%);
}

.nav-search button:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light) 0%, #f0f7ff 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Sección Servicios */
.servicios {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.servicio-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    background: var(--white);
}

.servicio-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.servicio-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.servicio-card p {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--dark);
}

.card-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.servicio-card:hover .card-link i {
    transform: translateX(5px);
}

/* Sección Propuesta */
.propuesta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
}

.propuesta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.propuesta-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.propuesta-subtitle {
    font-size: 1.35rem;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.servicios-lista {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.servicio-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.liderazgo {
    background: rgba(0, 163, 224, 0.1);
    padding: 30px;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin-top: 30px;
}

.liderazgo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.liderazgo p {
    color: #b0b0b0;
}

.propuesta-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Metodología */
.metodologia {
    padding: 80px 0;
    background: var(--white);
}

.metodologia-subtitle {
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
    font-size: 1.35rem;
}

/* Ajustes específicos para la página de metodología: párrafos y enlaces legibles sobre fondos oscuros */
.metodologia p,
.metodologia .metodologia-subtitle,
.metodologia .card-link,
.metodologia .info-box p {
    color: #ffffff;
}

.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.metodo-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: var(--light);
    transition: all 0.3s ease;
}

.metodo-item:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: var(--white);
}

.metodo-letra {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.metodo-item:hover .metodo-letra {
    color: var(--white);
}

.metodo-item h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.metodo-item:hover h4 {
    color: var(--white);
}

.metodo-item p {
    font-size: 0.95rem;
}

.metodo-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, var(--light) 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-header {
    padding: 25px;
    background: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background: var(--primary);
    color: var(--white);
}

.faq-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-header i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 25px 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding: 25px;
}

.faq-content p {
    margin: 0;
}

/* Formulario de Contacto */
.contacto {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
}

.contacto-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.contacto-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 163, 224, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.form-group textarea {
    color: #000;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-section p {
    color: #b0b0b0;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: #b0b0b0;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-section ul li:hover {
    color: var(--primary);
    margin-left: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.3) 0%, rgba(0, 102, 204, 0.2) 100%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.35rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 163, 224, 0.4);
    border-color: var(--primary-light);
}

/* Asegurar icono perfectamente centrado dentro del círculo */
.social-links a {
    padding: 0;
    box-sizing: border-box;
}
.social-links a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 1.25rem; /* ajustable */
}

/* Asegurar que el bloque de iconos sociales esté centrado dentro de su columna en el footer */
.footer-section .social-links {
    justify-content: center;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .propuesta .container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .metodologia-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .logo-img {
        max-width: 180px;
        max-height: 70px;
    }

    .nav-search input {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .nav-search {
        padding: 6px 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }

    .servicios,
    .propuesta,
    .metodologia,
    .faq,
    .contacto {
        padding: 40px 0;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-card,
.metodo-item,
.faq-item {
    animation: slideInUp 0.6s ease-out forwards;
}

.servicio-card:nth-child(2) {
    animation-delay: 0.1s;
}

.servicio-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #1ba85c 100%);
    border: 3px solid #ffd700;
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.2);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.8);
    border-color: #ffed4e;
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: rgba(0, 0, 0, 0.95);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 600;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 40px rgba(37, 211, 102, 0.8);
    }
}

/* Footer Links */
.footer-section a {
    color: #b0b0b0;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ===== GALERÍA DE ANÁLISIS ===== */

.galeria {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
}

.section-subtitle {
    text-align: center;
    color: #666666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.galeria-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
    height: 280px;
}

.galeria-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.25);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-end;
    height: 100%;
    justify-content: flex-end;
    flex-direction: column;
}

.galeria-item:hover .galeria-overlay {
    transform: translateY(0);
}

.galeria-overlay h4 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

/* Responsive Galería */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .galeria-item {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .galeria {
        padding: 50px 0;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .galeria-item {
        height: 250px;
    }

    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
}

/* ===== Video background support for FAQ & Contacto pages ===== */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    z-index: -1;
    pointer-events: none;
}

/* Pages opting into video backgrounds should add `with-video` class on <body> */
.with-video .hero,
.with-video .servicios,
.with-video .cta-section,
.with-video .propuesta {
    background: transparent !important;
}

.with-video .hero-title,
.with-video .hero-subtitle,
.with-video h1,
.with-video h2,
.with-video h3,
.with-video p,
.with-video .nav-menu a {
    color: #ffffff !important;
}

.with-video .navbar {
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(6px);
}

/* Make cards and forms slightly translucent for legibility */
.with-video .faq-card,
.with-video .servicio-card,
.with-video .contacto-form {
    background: rgba(255,255,255,0.92) !important;
    color: #111 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Mobile fallback: hide video and use poster image as background */
@media (max-width: 768px) {
    .bg-video { display: none; }
    .with-video {
        background-image: var(--video-poster);
        background-size: cover;
        background-position: center;
    }
}

/* Small tweaks for readability */
.with-video .hero-subtitle { color: rgba(255,255,255,0.9) !important; }


/* ===== FAQ Section Styles ===== */
.hero-faq {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.faq-detallado {
    padding: 80px 0;
}

.faq-categorias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.faq-categoria {
    padding: 0;
}

.faq-categoria h2 {
    color: var(--secondary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.faq-categoria h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.faq-header {
    padding: 20px;
    background: #f8fbff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-header {
    background: var(--primary);
    color: var(--white);
}

.faq-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--secondary);
}

.faq-item.active .faq-header h3 {
    color: var(--white);
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-header i {
    color: var(--white);
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-content {
    max-height: 600px;
    padding: 20px;
}

.faq-content p {
    margin-bottom: 15px;
    color: var(--gray);
    line-height: 1.8;
}

.faq-content ul {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 0;
}

.faq-content ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--gray);
}

.faq-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .faq-categorias {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-categoria h2 {
        font-size: 1.4rem;
    }

    .faq-header h3 {
        font-size: 1rem;
    }
}

/* ===== Contacto Section Styles ===== */
.hero-contacto {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.contacto-seccion {
    padding: 80px 0;
    background: #f8fbff;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-form-container h2 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

.contacto-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 15px;
}

.contacto-info-container {
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    height: fit-content;
}

.contacto-info-container h2 {
    color: var(--secondary);
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.contacto-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fbff;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.contacto-info-item:hover {
    box-shadow: var(--shadow);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.info-content h3 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-content p {
    margin-bottom: 5px;
}

.info-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--secondary);
}

.info-content small {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
}

.info-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1080FF 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.info-box h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.info-box p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-box-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-box-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box-features .feature i {
    flex-shrink: 0;
    color: #FFD700;
}

.beneficios-contacto {
    padding: 80px 0;
    background: var(--white);
}

.beneficios-contacto h2 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.proceso-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8fbff;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.proceso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.proceso-numero {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.proceso-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.proceso-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .proceso-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contacto-form {
        padding: 25px;
    }

    .contacto-info-container {
        padding: 20px;
    }

    .contacto-info-item {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .proceso-grid {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
        font-size: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

