body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}
/* Navbar mejorado con gradiente */
.navbar {
    background: linear-gradient(90deg, #ffffff 0%, #ecf0f1 30%, #bdc3c7 70%, #95a5a6 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.navbar-brand img {
    max-width: 100px;
}

.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #34495e !important;
    transform: translateY(-2px);
}

.navbar .d-flex span {
    color: #2c3e50;
    font-weight: 500;
}

.navbar .btn-success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.navbar .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: scale(1.05);
}
.services {
    background: linear-gradient(135deg, #4fc3f7, #0288d1);
    color: white;
    padding: 5rem 0;
}
.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.service-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
}
.service-item img {
    height: 150px;
    margin-bottom: 15px;
}
.portfolio-item .caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
    color: white;
    transition: background 0.3s ease;
}
.portfolio-item:hover .caption {
    background: rgba(0, 0, 0, 0.8);
}
.carousel-inner .carousel-item img {
    max-height: 100px;
    object-fit: contain;
}
footer {
    padding: 2rem 0;
    position: relative;
}
.testimonial {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    height: 100%;
}
.testimonial .testimonial-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}
.testimonial .name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.testimonial .text {
    font-size: 1rem;
    color: #555;
}
.header-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.header-hero img {
    max-width: 100%;
    max-height: 300px;
}
.cotizador-box {
    background-color: #ffffff;
    padding: 2rem;
    min-width: 300px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center
}

/* Estilos para el widget de ClickSeguros */
#clickseguros-widget {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
    overflow: hidden;
    /* padding: 1rem; */
}

#clickseguros-iframe {
    width: 100% !important;
    /* min-height: 600px !important;
    max-height: 800px !important; */
    border: none !important;
    border-radius: 12px;
    display: block;
}

/* Estilos para mensajes de error del widget */
#clickseguros-widget .alert,
#clickseguros-widget-auto .alert {
    margin: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    background-color: #fff3cd;
    color: #856404;
}

#clickseguros-widget .alert strong,
#clickseguros-widget-auto .alert strong {
    color: #856404;
    font-weight: 600;
}

#clickseguros-widget .alert small,
#clickseguros-widget-auto .alert small {
    color: #856404;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Cotizador mejorado con bordes coloridos */
.cotizadorBordes {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.cotizadorBordes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Borde colorido usando box-shadow para mejor compatibilidad */
.cotizadorBordes {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 30px rgba(102, 126, 234, 0.15),
        0 0 0 3px #667eea,
        0 0 0 6px #764ba2,
        0 0 0 9px #f093fb;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tabs {
    margin-top: 2rem;
}

.tab-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-links li {
    margin: 0 0.5rem 0 0;
}

.tab-links li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: white;
    background: #6c757d;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    border-bottom: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-links li.active a {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Pestañas con colores únicos para cada tipo de seguro */
.tab-links li#auto a {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-color: #ff6b6b;
}

.tab-links li#auto.active a {
    background: linear-gradient(135deg, #ff5252, #d63031);
    border-color: #ff5252;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
}

.tab-links li#casa a {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border-color: #4ecdc4;
}

.tab-links li#casa.active a {
    background: linear-gradient(135deg, #26d0ce, #2d3436);
    border-color: #26d0ce;
    box-shadow: 0 4px 15px rgba(38, 208, 206, 0.3);
}

.tab-links li#moto a {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border-color: #74b9ff;
}

.tab-links li#moto.active a {
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
    border-color: #0984e3;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.tab-links li#vida a {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    border-color: #fd79a8;
}

.tab-links li#vida.active a {
    background: linear-gradient(135deg, #e84393, #6c5ce7);
    border-color: #e84393;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
}

.tab-links li#viajes a {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    border-color: #fdcb6e;
}

.tab-links li#viajes.active a {
    background: linear-gradient(135deg, #e17055, #d63031);
    border-color: #e17055;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.tab-links li#malaPraxis a {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: #f39c12;
}

.tab-links li#malaPraxis.active a {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #e67e22;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.tab-links li#otros a {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
    border-color: #a29bfe;
}

.tab-links li#otros.active a {
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
    border-color: #6c5ce7;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* Hover effects mejorados para todas las pestañas */
.tab-links li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tab-links li.active a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.tab-content {
    position: relative;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

/* Estilos para los formularios del cotizador */
.form-inline .form-group {
    margin: 0.5rem;
    display: inline-block;
}

.form-inline .form-group label {
    margin: 0;
}

.form-inline .form-control {
    margin: 0;
}

.btn-dark {
    background: #343a40;
    border-color: #343a40;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #23272b;
    border-color: #23272b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive para las pestañas */
@media (max-width: 768px) {
    .tab-links {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-links li {
        margin: 0.25rem 0;
        width: 100%;
        text-align: center;
    }
    
    .tab-links li a {
        border-radius: 8px;
        border: 2px solid #e9ecef;
        border-bottom: 2px solid #e9ecef;
    }
    
    .form-inline .form-group {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}


#floatingWidget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 260px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #4fc3f7;
}
#floatingWidgetHeader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px 14px 0 0;
}
#floatingWidget img {
    width: 120px;
    display: block;
    position: absolute;
    right: -47px;
    top: 26px;
    transform: rotate(-14deg);
    z-index: 3;
}
#floatingWidget form {
    padding: 1rem;
    position: relative;
    z-index: 2;
}
#floatingWidget form input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}
#floatingWidget form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}
#floatingWidget form button:hover {
    background: #0288d1;
    transform: scale(1.05);
}

/* Estilos responsivos para el floatingWidget */
@media (max-width: 768px) {
    #floatingWidget {
        right: 10px;
        bottom: 10px;
        width: 240px;
    }
    #floatingWidget img {
        width: 100px;
        right: -40px;
        top: 20px;
    }
}
.company-grid-section {
    padding: 4rem 0;
    background: #f0f4f8;
}
.company-grid-section h2 {
    margin-bottom: 2rem;
}
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.company-grid img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.company-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}
footer {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}
footer p, footer a {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}
.footer-socials a {
    color: #555;
    margin: 0 10px;
    font-size: 1.5rem;
}
.footer-socials a:hover {
    color: #0288d1;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}
.footer-signature {
    margin: 0;
    padding: 0;
}
.footer-signature img {
    max-width: 75px;
    display: block;
    position: absolute;
}
.faq-section {
    padding: 5rem 0;
    background: #f8f9fa;
}
.faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item[open] summary i {
    transform: rotate(180deg);
}
.faq-item i {
    transition: transform 0.3s;
}
.faq-item p {
    margin-top: 1rem;
    color: #555;
}

/* Header de FAQ con fondo violeta */
.faq-section header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin: -5rem -2rem 3rem -2rem;
    border-radius: 0 0 20px 20px;
    text-align: center;
}