/* =========================================================================
   CUSTOM STYLES FOR HOME & GENERAL CLEANUP
   Moved from inline CSS in index.html (24-Jan-2026)
   ========================================================================= */

/* --- Logo Animations & Effects --- */
.site-logo {
    position: relative;
    display: inline-block;
}

/* Main lines on sides */
.page-home .site-logo::before,
.page-home .site-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #EFB51D, #EFB51D, transparent);
    animation: expandLine 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(239, 181, 29, 0.5);
}

.page-home .site-logo::before {
    right: 100%;
    margin-right: 15px;
}

.page-home .site-logo::after {
    left: 100%;
    margin-left: 15px;
    animation-delay: 1s;
}

.page-home .site-logo img {
    position: relative;
    z-index: 1;
}

@keyframes expandLine {
    0%, 100% { width: 0; opacity: 0; transform: translateY(0); }
    50% { width: 100px; opacity: 1; transform: translateY(-2px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Mobile responsive animation tweak */
@media (max-width: 768px) {
    @keyframes expandLine {
        0%, 100% { width: 0; opacity: 0; }
        50% { width: 50px; opacity: 1; }
    }
}

/* --- Sticky Header Fixes --- */
.site-header,
.site-header.sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
}

/* Hide desktop header on mobile */
@media (max-width: 768px) {
    .site-header,
    .site-header.sticky-header {
        display: none !important;
    }
    body.has-sticky-header {
        padding-top: 0 !important;
    }
}

/* --- Header Navigation & Layout --- */
.nav.header-navigation {
    position: relative;
    z-index: 10;
}
.nav.header-navigation .menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 768px) {
    .nav.header-navigation .menu {
        margin-top: 60px;
    }
}

/* Contact Lines */
.header-lineas {
    text-align: center;
}
.lineas-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #EFB51D;
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}
.phone-link img {
    margin-right: 10px;
}
.phone-link:hover {
    background-color: #d4a017;
}

/* --- Bubble Button CTA --- */
.center-ccontainer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 105%;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    background: transparent;
}
.bubble-button {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #EFB51D;
    border: none;
    border-radius: 0 0 50px 50px;
    cursor: pointer;
    overflow: hidden;
    animation: pulseScale 1.5s infinite ease-in-out;
}
@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.bubble-button .bubble {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 243, 191, 0.8);
    border-radius: 50%;
    animation: bubble-animation 4s infinite;
    opacity: 0;
}
@keyframes bubble-animation {
    0% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translate(calc(-50px + 100px * var(--direction)), -150px) scale(1.5); opacity: 0; }
}

/* --- Mobile Header Custom --- */
.mobile-header-spacer {
    display: block;
    height: 80px;
    width: 100%;
    background: white;
}
@media (min-width: 769px) {
    .mobile-header-spacer {
        display: none;
    }
}

.mobile-header-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    box-sizing: border-box;
}
.mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.mobile-logo img {
    max-height: 50px;
    width: auto;
}
.mobile-toggle-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #132368;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(19, 35, 104, 0.95);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateY(0);
}
.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
}
.mobile-menu-logo img {
    max-height: 60px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-links li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.mobile-menu-links a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}
.mobile-menu-links a:hover {
    color: #EFB51D;
    border-color: #EFB51D;
}
.mobile-social-icons {
    margin-top: 40px;
}
.mobile-social-icons a {
    color: white;
    font-size: 28px;
    margin: 0 15px;
    transition: color 0.3s;
}
.mobile-social-icons a:hover {
    color: #EFB51D;
}

@media (max-width: 768px) {
    .mobile-header-custom {
        display: block !important;
    }
    body {
        padding-top: 110px !important;
    }
}

/* Chatbot Styles from footer */
#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    border: 2px solid #1D2D91;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background-color: #FFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}
#chat-header {
    background-color: #1D2D91;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
}
#chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f0f0f0;
    color: #000;
}
#messages {
    color: #000;
}
#chat-footer {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid white;
}
#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ffff;
    border-radius: 5px;
    font-size: 14px;
    color: #000;
}
#send-btn {
    background-color: #1D2D91;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 10px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 14px;
}
#send-btn:hover {
    background-color: #14206d;
}
.user-message {
    align-self: flex-end;
    background-color: #1D2D91;
    color: white;
    border-radius: 10px;
    padding: 10px;
    max-width: 75%;
}
.bot-message {
    align-self: flex-start;
    background-color: #FFFF;
    color: #000;
    border-radius: 10px;
    padding: 10px;
    max-width: 75%;
}
@media (max-width: 400px) {
    #chatbot {
        width: 100%;
        right: 0;
        bottom: 0;
        height: 300px;
    }
}

/* =========================================================================
   FUNNEL SECTION STYLES
   Moved from inline CSS in index.html (24-Jan-2026)
   ========================================================================= */
.funnel-section {
    background: #f8f9fa;
}

/* Hero CTA Block */
.hero-cta-block {
    background: #f8f9fa;
    color: #333;
    padding: 80px 0;
    text-align: center;
}

.hero-cta-content h2,
.hero-cta-content h1 { /* Added h1 for SEO */
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1D2D91;
}

.hero-cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #666;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-primary {
    background: #25D366;
    color: white;
}

.btn-primary:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #EFB51D;
    color: white;
}

.btn-secondary:hover {
    background: #d4a017;
    transform: translateY(-2px);
}

/* Services Grid */
.services-grid-block {
    padding: 80px 0;
    background: white;
}

.services-grid-block h3 {
    text-align: center;
    font-size: 36px;
    color: #1D2D91;
    margin-bottom: 50px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #1D2D91;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 35px;
    color: white;
}

.service-card h4 {
    font-size: 24px;
    color: #1D2D91;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-cta {
    display: inline-block;
    background: #EFB51D;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-cta:hover {
    background: #d4a017;
    transform: translateY(-2px);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.trust-text h3 {
    font-size: 36px;
    color: #1D2D91;
    margin-bottom: 20px;
    font-weight: 700;
}

.trust-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.trust-features {
    list-style: none;
    padding: 0;
}

.trust-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.trust-features i {
    color: #25D366;
    margin-right: 15px;
    font-size: 18px;
}

.trust-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Urgency CTA */
.urgency-cta-block {
    background: linear-gradient(45deg, #EFB51D 0%, #F4C445 100%);
    padding: 60px 0;
    text-align: center;
}

.urgency-content h3 {
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.urgency-content p {
    font-size: 18px;
    color: white;
    margin-bottom: 30px;
    opacity: 0.9;
}

.urgency-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-urgent,
.btn-urgent-call {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-urgent {
    background: #25D366;
    color: white;
}

.btn-urgent:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.btn-urgent-call {
    background: #1D2D91;
    color: white;
}

.btn-urgent-call:hover {
    background: #14206d;
    transform: scale(1.05);
}

.urgency-subtitle {
    font-size: 14px;
    color: white;
    font-style: italic;
    opacity: 0.8;
}

/* Final CTA */
.final-cta-block {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.final-cta-content h2 {
    font-size: 38px;
    color: #1D2D91;
    margin-bottom: 20px;
    font-weight: 700;
}

.final-cta-content p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

.btn-final-cta {
    display: inline-block;
    background: #EFB51D;
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 181, 29, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 181, 29, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 181, 29, 0);
    }
}

.btn-final-cta:hover {
    background: #d4a017;
    transform: translateY(-3px);
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
    .hero-cta-content h2 {
        font-size: 28px;
    }

    .hero-cta-content p {
        font-size: 16px;
    }

    .cta-buttons, .urgency-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid, .trust-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid-block h3,
    .trust-text h3,
    .urgency-content h3,
    .final-cta-content h2 {
        font-size: 24px;
    }
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================================
   POPUP STYLES
   ========================================================================= */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    filter: alpha(opacity=70);
    -moz-opacity: 0.7;
    -khtml-opacity: 0.7;
    opacity: 0.7;
    z-index: 100;
    display: none;
}

.cnt223 a {
    text-decoration: none;
    font-size: 14px;
}

.popup {
    width: 100%;
    margin: 0 auto;
    display: none;
    position: fixed;
    z-index: 101;
    cursor: pointer;
}

.cnt223 {
    min-width: 600px;
    width: 600px;
    height: 400px;
    min-height: 150px;
    margin: 100px auto;
    background-image: url("../images/template/home/blanc_pop-up.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 103;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px #000;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@media only screen and (max-width: 600px) {
    .cnt223 {
        min-width: 300px;
        width: 300px;
        height: 200px;
    }
}

.cnt223 p {
    clear: both;
    color: #444444;
    font-size: 20px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.cnt223 h1 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #97274d;
}

.cnt223 p a {
    color: #d91900;
    font-weight: bold;
}

.cnt223 .x {
    float: right;
    height: 35px;
    left: 22px;
    position: relative;
    top: -25px;
    width: 34px;
}

.cnt223 .x:hover {
    cursor: pointer;
}

a.close {
    color: #fff000;
    position: fixed;
}

/* =========================================================================
   FAQ ACCORDION STYLES
   Added for faq.html (24-Jan-2026)
   ========================================================================= */
.faq-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    color: #1D2D91;
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 3px solid #EFB51D;
    padding-bottom: 10px;
    display: inline-block;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    position: relative;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #EFB51D;
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    color: #1D2D91;
    border-bottom: 1px solid #eee;
}

.faq-answer {
    padding: 20px;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    background: #fff;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.master-phrase {
    background: #1D2D91;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 60px 0;
    font-size: 1.2rem;
    font-style: italic;
    box-shadow: 0 10px 30px rgba(29, 45, 145, 0.3);
}
