/* 
   CARSAV - Página Seguros (Versión Premium)
   Este archivo contiene los estilos mejorados para la página de Seguros
   con efectos visuales avanzados y experiencia de usuario premium
*/

/* ===== HERO SECTION MEJORADO ===== */
.page-hero {
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 64, 0.92), rgba(30, 117, 217, 0.88)), 
                url('https://images.pexels.com/photos/259027/pexels-photo-259027.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750') center/cover no-repeat;
    z-index: -1;
    animation: gradientShift 15s ease infinite alternate;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.page-hero:hover .page-hero-background {
    transform: scale(1);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" height="100"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 C75,50 75,100 100,100 L0,100 Z"></path></svg>') no-repeat;
    background-size: cover;
    z-index: 0;
    opacity: 0.7;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 0;
}

/* Efecto de partículas flotantes */
.page-hero .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Contenido del hero */
.page-hero-content {
    color: white;
    max-width: 850px;
    z-index: 1;
    padding: 2rem 0;
    text-align: center;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease-out forwards;
    position: relative;
}

.page-hero h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

.page-hero h1::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 6px;
    background: var(--accent);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    animation: expandWidth 1.5s ease-out forwards;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.5);
}

@keyframes expandWidth {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

.page-hero h1::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 6px;
    background: rgba(255, 140, 26, 0.6);
    bottom: -20px;
    left: 50%;
    transform: translateX(40px);
    border-radius: 50px;
    animation: expandWidth2 1.5s ease-out forwards;
}

@keyframes expandWidth2 {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60px;
        opacity: 0.6;
    }
}

.page-hero p {
    font-size: 1.5rem;
    opacity: 0;
    color: white;
    max-width: 650px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 3rem auto 0;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.7px;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    position: relative;
    padding: 0 1rem;
}

.page-hero p::before, .page-hero p::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    top: 50%;
}

.page-hero p::before {
    left: -30px;
    transform: translateX(-100%);
}

.page-hero p::after {
    right: -30px;
    transform: translateX(100%);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECCIÓN DE SERVICIOS MEJORADA ===== */
.servicios-seccion {
    padding: 10rem 0 8rem;
    background-color: var(--light);
    position: relative;
}

.servicios-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="3" cy="3" r="3" fill="rgba(30, 117, 217, 0.03)"/></svg>');
    background-repeat: repeat;
    z-index: 0;
    opacity: 0.5;
}

/* Tarjetas de servicio */
.service-card {
    margin-bottom: 6rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(13, 35, 64, 0.08);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.service-card:last-child {
    margin-bottom: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -15px rgba(13, 35, 64, 0.15);
}

/* Efecto de iluminación al hover */
.service-card::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::after {
    opacity: 0.2;
}

/* Numeración de tarjetas */
.service-card[data-number]::before {
    content: attr(data-number);
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(13, 35, 64, 0.03);
    z-index: 1;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -2px;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover[data-number]::before {
    color: rgba(30, 117, 217, 0.05);
    transform: scale(1.1);
}

/* Etiqueta popular */
.popular-tag {
    position: absolute;
    top: 2rem;
    right: -4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.7rem 4rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 20px rgba(255, 140, 26, 0.35);
    z-index: 10;
    text-transform: uppercase;
}

/* Contenido de la tarjeta */
.card-content {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.card-image {
    width: 40%;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 35, 64, 0), rgba(13, 35, 64, 0.4));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .card-image img {
    transform: scale(1.08);
}

.card-details {
    width: 60%;
    padding: 4rem 3.5rem 3.5rem;
    position: relative;
}

/* Iconos de servicio */
.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(30, 117, 217, 0.08), rgba(30, 117, 217, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    font-size: 2.2rem;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(30, 117, 217, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(30, 117, 217, 0.3);
}

/* Títulos y textos */
.card-details h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .card-details h2 {
    transform: translateX(8px);
    color: var(--secondary);
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    margin-bottom: 2rem;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.service-card:hover .divider {
    width: 120px;
}

.service-description {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover .service-description {
    color: var(--dark);
}

/* Lista de servicios */
.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 2.5rem;
}

.service-list li {
    color: var(--gray);
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-list li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.service-list i {
    color: var(--accent);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-list li:hover i {
    color: var(--secondary);
    transform: scale(1.2);
}

/* Botón solicitar mejorado */
.solicitar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
    box-shadow: 0 10px 25px rgba(13, 35, 64, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
    gap: 1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.solicitar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: scale(0.5);
    border-radius: 50px;
}

.solicitar-btn i {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.solicitar-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 35, 64, 0.25);
    letter-spacing: 1.2px;
}

.solicitar-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.solicitar-btn:hover i {
    transform: translateX(8px);
}

/* ===== MEDIA QUERIES MEJORADAS ===== */
@media (max-width: 1400px) {
    .page-hero h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 1200px) {
    .page-hero h1 {
        font-size: 4rem;
    }
    
    .card-details {
        padding: 3.5rem 3rem 3rem;
    }
    
    .service-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .page-hero {
        height: 65vh;
    }
    
    .page-hero h1 {
        font-size: 3.5rem;
    }
    
    .page-hero p {
        font-size: 1.3rem;
    }
    
    .card-content {
        flex-direction: column;
    }
    
    .card-image, .card-details {
        width: 100%;
    }
    
    .card-image {
        height: 350px;
    }
    
    .service-card[data-number]::before {
        top: 2rem;
        left: 2rem;
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 60vh;
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }
    
    .page-hero p {
        font-size: 1.2rem;
    }
    
    .servicios-seccion {
        padding: 7rem 0 5rem;
    }
    
    .service-card {
        margin-bottom: 5rem;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .card-details h2 {
        font-size: 1.8rem;
    }
    
    .page-hero p::before, .page-hero p::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .page-hero {
        height: 50vh;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .card-details {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .card-details h2 {
        font-size: 1.6rem;
    }
    
    .solicitar-btn {
        width: 100%;
        text-align: center;
        padding: 1.2rem 1.5rem;
    }
    
    .service-card[data-number]::before {
        font-size: 4rem;
        top: 1.5rem;
        left: 1.5rem;
    }
}