/* static/css/servicio_detalle.css */

/* Hero Section Styles */
.hero-servicio {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-servicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-servicio-decorative-element-1 {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.hero-servicio-decorative-element-2 {
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 2;
}

.hero-servicio .container {
    position: relative;
    z-index: 3;
}

.hero-servicio-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-servicio-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.hero-servicio-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-solicitar-cotizacion {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-solicitar-cotizacion:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    color: white; /* Keep color white on hover */
    text-decoration: none; /* Keep text decoration none on hover */
}

.btn-volver-servicios {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-volver-servicios:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white; /* Keep color white on hover */
    text-decoration: none; /* Keep text decoration none on hover */
}

.hero-sidebar-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 5px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-sidebar-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.hero-sidebar-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.hero-sidebar-icon-wrapper i {
    font-size: 1.5rem;
    color: #ff6b6b;
}

.hero-sidebar-text {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-contactar-sidebar {
    display: block;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-contactar-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white; /* Keep color white on hover */
    text-decoration: none; /* Keep text decoration none on hover */
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down-arrow a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-down-arrow a:hover {
    color: #ffffff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Content Section Styles */
#contenido {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.content-decorative-element-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(0, 38, 104, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 50%;
    z-index: 1;
}

.content-decorative-element-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.03), rgba(0, 38, 104, 0.03));
    border-radius: 50%;
    z-index: 1;
}

#contenido .container {
    position: relative;
    z-index: 2;
}

.sidebar-features-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 38, 104, 0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar-header-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

.sidebar-header-icon-wrapper i {
    font-size: 1.2rem;
    color: white;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002668;
    margin: 0;
    line-height: 1.2;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper.quality {
    background: linear-gradient(45deg, rgba(0, 38, 104, 0.1), rgba(0, 38, 104, 0.05));
}

.feature-icon-wrapper.punctual {
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.feature-icon-wrapper.expert {
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
}

.feature-icon-wrapper.guarantee {
    background: linear-gradient(45deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
}

.feature-icon-wrapper i {
    font-size: 1.1rem;
}

.feature-icon-wrapper.quality i {
    color: #002668;
}
.feature-icon-wrapper.punctual i {
    color: #ff6b35;
}
.feature-icon-wrapper.expert i {
    color: #28a745;
}
.feature-icon-wrapper.guarantee i {
    color: #17a2b8;
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002668;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.feature-content p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.sidebar-contact-cta {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 38, 104, 0.1);
}

.btn-sidebar-cta {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
    color: white; /* Keep color white on hover */
    text-decoration: none; /* Keep text decoration none on hover */
}


/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #002668;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-contact {
    background: linear-gradient(135deg, #002668, #003d8a);
    color: white;
    padding: 15px 40px;
    border-radius: 5px; /* Changed from 50px to 5px for consistency */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,38,104,0.2);
    margin-right: 20px;
}

.cta-section .btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,38,104,0.3);
    color: white;
    text-decoration: none;
}

.cta-section .btn-return {
    background: white;
    color: #002668;
    border: 2px solid #002668;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.cta-section .btn-return:hover {
    background: #002668;
    color: white;
    text-decoration: none;
}


/* General Custom CSS (from original extra_css block that was not dynamic) */
.hero-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23002668" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23002668" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23002668" opacity="0.15"/><circle cx="20" cy="80" r="0.5" fill="%23002668" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.breadcrumb-custom {
    background: none;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-custom .breadcrumb-item a {
    color: #002668;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #ff6b35;
}

.servicio-imagen {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,38,104,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.servicio-imagen:hover {
    transform: translateY(-5px);
}

.servicio-imagen img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio-imagen:hover img {
    transform: scale(1.05);
}

.icono-servicio {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(255,107,53,0.3);
    animation: pulse 2s infinite;
}

.icono-servicio i {
    font-size: 2.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.contenido-seccion {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,38,104,0.1);
    position: relative;
    overflow: hidden;
}

.contenido-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.proceso-step {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
}

.proceso-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.proceso-step .numero {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #002668, #003d8a);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.caracteristica-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.caracteristica-item:hover {
    border-color: #ff6b35;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,107,53,0.1);
}

.caracteristica-item i {
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 15px;
    display: block;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-servicio {
        min-height: 70vh !important;
        background-attachment: scroll !important;
    }
    
    .hero-servicio .container {
        padding-top: 60px;
    }
    
    .hero-servicio .row > div:last-child {
        margin-top: 30px !important;
    }
}

@media (max-width: 576px) {
    .hero-servicio {
        min-height: 60vh !important;
    }
    
    .hero-servicio .breadcrumb {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .hero-servicio .breadcrumb-item {
        margin-bottom: 5px;
    }
}


/* Responsive adjustments for content section */
@media (max-width: 992px) {
    #contenido .col-lg-4 {
        margin-top: 40px;
    }
    
    #contenido .col-lg-4 > div {
        position: static !important;
    }
}

@media (max-width: 768px) {
    #contenido {
        padding: 60px 0 !important;
    }
    
    #contenido .container > .row > div > div {
        padding: 30px 25px !important;
    }
    
    #contenido h1.display-6 { /* Specificity for h1 in content section */
        font-size: 1.7rem !important;
    }
    
    #contenido h3 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 576px) {
    #contenido .container > .row > div > div {
        padding: 25px 20px !important;
    }
    
    #contenido .col-lg-8 > div,
    #contenido .col-lg-4 > div {
        margin-bottom: 25px !important;
    }
    /* Buttons in CTA section responsiveness */
    .cta-section .btn-contact,
    .cta-section .btn-return {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
}