/* Custom fixes to match production site styling */

/* Header - Smaller and more compact */
#masthead {
    padding: 0 !important;
}

#masthead .navbar {
    padding: 0.3rem 0 !important;
    min-height: auto !important;
}

#masthead .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
}

#masthead .nav-link {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.7rem !important;
}

/* Page Title Section */
section.page-title {
    padding-top: 4em;
    padding-bottom: 4.5em;
    text-align: center;
    background: #fff;
}

section.page-title h1 {
    color: #1c1e21;
    font-size: 1.7em;
    margin-top: 1.2em;
    text-transform: none;
}

.page-title-description {
    margin-bottom: 0;
    text-align: center;
    line-height: 27px;
    font-size: 1.3em;
    font-weight: normal;
    margin-top: 1.8em;
}

body.inner-page section.page-title {
    padding-top: 2.2em;
    padding-bottom: 2.8em;
}

body.inner-page section.page-title h1 {
    margin-top: 0.6em;
}

body.inner-page .page-title-description {
    margin-top: 0.9em;
}

@media (max-width: 768px) {
    body.inner-page section.page-title {
        padding-top: 1.4em;
        padding-bottom: 2.2em;
    }

    body.inner-page section.page-title h1 {
        margin-top: 0.4em;
    }

    body.inner-page .page-title-description {
        margin-top: 0.7em;
        line-height: 1.4em;
    }
}

/* Button Styles */
.contenedor-btn-default {
    margin-top: 3em;
    text-align: center;
}

.btn-default {
    background: transparent;
    border: #575756 solid 2px;
    padding: 14px 20px;
    color: #1c1e21 !important;
    font-size: 18pt;
    border-radius: 2em;
    text-decoration: none !important;
    display: inline-block;
    margin: 0 10px;
}

.btn-default:focus,
.btn-default:hover {
    background: #f8f9fa;
    border-color: #6c757d;
}

.falso-btn-default {
    background: #f1a820;
    border: #f1a820;
    padding: 14px 20px;
    color: #333 !important;
    font-size: 18pt;
    border-radius: 2em;
    text-decoration: none !important;
    cursor: pointer;
    display: inline-block;
    margin: 0 10px;
}

.falso-btn-default:focus,
.falso-btn-default:hover {
    background: #d4961a;
    border-color: #d4961a;
    color: #333 !important;
}

/* Typography */
.falso-h2 {
    margin-top: 0em;
    margin-bottom: 1.7em;
    font-size: 1.5em;
    font-weight: bold;
    color: #313335;
    text-align: center;
}

@media (min-width: 771px) {
    .falso-h2 {
        font-size: 1.8em;
    }
}

.falso-h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.3em;
    color: #111;
    text-align: center;
    font-weight: bold;
}

@media (min-width: 771px) {
    .falso-h3 {
        font-size: 1.4em;
    }
}

.cursiva {
    font-style: italic;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 2em;
}

/* Services Section */
.services-section {
    background: #f2f2f2;
    padding-bottom: 5em;
}

.services-section .container {
    padding-top: 3em;
}

/* Contact Section */
.page-section-contacto {
    background: #f4f4f4;
    padding: 5em 0;
}

/* Footer */
.site-footer {
    background: #20232a;
    color: #fff;
    padding: 3em 0 2em 0;
}

/* Navigation */
.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #F95C01 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section.page-title {
        padding-top: 6em;
    }
    
    .page-title-description {
        font-size: 1.1em;
        margin-top: 1.5em;
    }
    
    .btn-default,
    .falso-btn-default {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .falso-h2 {
        font-size: 1.3em;
    }
    
    .falso-h3 {
        font-size: 1.1em;
    }
}

/* Additional spacing and layout fixes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    margin: 0 -15px;
}

.col-md-4 {
    padding: 0 15px;
}

/* Icon styling */
.fas {
    color: #333;
}

/* Link styling */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Ensure proper spacing */
section {
    margin: 0;
    padding: 0;
}

/* Fix for the hero section spacing */
.page-title p:first-child {
    margin-bottom: 0;
}

/* Ensure buttons are properly spaced */
.contenedor-btn-default a {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .contenedor-btn-default {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .contenedor-btn-default a {
        margin: 0;
        display: inline-block;
        min-width: 200px;
    }
}

/* Hide video on actual mobile phones (small screens) */
@media (max-width: 576px) {
    .video-youtube-responsive {
        display: none !important;
    }
    
    /* Hide the entire row containing the video */
    .row:has(.video-youtube-responsive) {
        display: none !important;
    }
}

/* FAQ Accordion Styling */
.accordion-button {
    background-color: #f8f9fa !important;
    color: #333 !important;
    font-weight: normal !important;
    border: 1px solid #dee2e6 !important;
    padding: 1rem 1.25rem !important;
}

.accordion-button:not(.collapsed) {
    background-color: #e9ecef !important;
    color: #333 !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

.accordion-button::after {
    background-image: none !important;
    content: '\25BC' !important;
    font-size: 0.8rem !important;
    color: #666 !important;
}

.accordion-button:not(.collapsed)::after {
    content: '\25B2' !important;
}

.accordion-item {
    border: 1px solid #dee2e6 !important;
    margin-bottom: 0.5rem !important;
}

.accordion-body {
    padding: 1.25rem !important;
    background-color: #fff !important;
}

.accordion-body p {
    margin: 0 !important;
    color: #333 !important;
}

/* Floating Buttons - Prevent Content Overlap */
#floating-buttons {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#floating-buttons a {
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    text-align: center !important;
    line-height: 50px !important;
    color: #fff !important;
    font-size: 20px !important;
    text-decoration: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.2s ease !important;
}

#floating-buttons a:hover {
    transform: scale(1.05) !important;
}

#floating-buttons i {
    color: #fff !important;
}

#floating-buttons .floating-btn-contact {
    background: #f1a820 !important;
}

#floating-buttons .floating-btn-whatsapp {
    background: #25D366 !important;
}

@media (max-width: 768px) {
    #floating-buttons {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important;
        display: flex !important;
        width: 100% !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        background: transparent !important;
    }

    #floating-buttons a {
        flex: 1 !important;
        width: auto !important;
        height: 64px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.2rem !important;
        padding: 0 12px !important;
    }

    #floating-buttons a i {
        font-size: 1.6rem !important;
    }

    body {
        padding-bottom: 80px !important;
    }

    section:not([style*="background:#f2f2f2"]) .container {
        padding-right: 15px !important;
    }
}

/* Ensure content doesn't get hidden behind floating buttons */
body {
    padding-right: 0 !important;
}

/* Only apply margin to sections that need it - NOT to image-based sections */
section:not([style*="background:#f2f2f2"]) .container {
    padding-right: 60px;
}

/* Keep Our Clients and similar sections centered */
section[style*="background:#f2f2f2"] .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
    section:not([style*="background:#f2f2f2"]) .container {
        padding-right: 15px;
    }
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 1100 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 1s ease-in-out, visibility 0s linear 1s !important;
    pointer-events: none !important;
}

#scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 1s ease-in-out, visibility 0s linear 0s !important;
    pointer-events: auto !important;
}

#scroll-to-top a {
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    background: #4a4a4a !important;
    text-align: center !important;
    line-height: 50px !important;
    color: #fff !important;
    font-size: 20px !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background 0.3s ease !important;
}

#scroll-to-top a:hover {
    background: #333 !important;
}

#scroll-to-top i {
    color: #fff !important;
}

/* Responsive adjustments for scroll to top button */
@media (max-width: 768px) {
    #scroll-to-top {
        right: 16px !important;
        bottom: 82px !important;
    }
    
    #scroll-to-top a {
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
        font-size: 18px !important;
    }
}
