/* HOME.CSS MEJORADO - ESTÉTICA PROFESIONAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

/* HEADER MEJORADO */
.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff !important;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #60a5fa;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #60a5fa;
}

/* BOTÓN VOLVER MEJORADO */
.volver-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 280px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.volver-link:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
}

.volver-link span {
    font-size: 1.2rem;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.volver-link:hover span {
    transform: translateX(-3px);
}

/* HERO SECTION MEJORADA */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* SECCIÓN COTIZACIÓN MEJORADA */
.comparison-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, transparent, #3b82f6, transparent);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.comparison-form {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 12px;
    color: #374151;
    font-size: 1.1rem;
}

.form-group select,
.form-group input {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-group select:valid,
.form-group input:valid {
    border-color: #10b981;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%2310b981"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #8b5cf6);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* SECCIÓN PREPAGAS MEJORADA */
.prepagas-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
}

.prepagas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.prepagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.prepaga-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.prepaga-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #1d4ed8);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.prepaga-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.prepaga-logo {
    width: 140px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    transition: all 0.3s ease;
}

.prepaga-card:hover .prepaga-logo {
    transform: scale(1.1);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.prepaga-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.prepaga-card:hover .prepaga-logo img {
    transform: scale(1.1);
}

.prepaga-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1e3a8a;
    font-weight: 700;
}

.prepaga-card p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.quote-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

/* BLOG SECTION MEJORADA */
.blog-section {
    padding: 100px 0;
    background: #fff;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 45px;
    margin-top: 60px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.blog-content {
    padding: 30px;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e3a8a;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
}

.blog-meta {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: #1d4ed8;
    gap: 12px;
}

/* FEATURES MEJORADA */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 45px;
    margin-top: 70px;
}

.feature-card {
    background: #fff;
    padding: 50px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #1d4ed8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #1e3a8a;
    font-weight: 700;
}

.feature-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* TESTIMONIALS MEJORADA */
.testimonials {
    padding: 100px 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -25px;
    left: 30px;
    font-size: 6rem;
    color: #3b82f6;
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.1rem;
}

/* FOOTER MEJORADO */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, transparent, #3b82f6, transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #60a5fa;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 40px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* WHATSAPP FLOAT MEJORADO */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50px;
    padding: 18px 30px;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    font-size: 1.6rem;
}

/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .nav-menu, .social-icons {
        display: none;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .prepagas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .prepaga-logo {
        width: 120px;
        height: 80px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-form {
        padding: 30px 20px;
    }
    
    .feature-card, .testimonial-card {
        padding: 30px 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .prepaga-card:hover, .blog-card:hover, .feature-card:hover {
        transform: none;
    }
}

/* ANIMACIONES SEGURAS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ESTADOS DE FOCO PARA ACCESIBILIDAD */
button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* OPTIMIZACIÓN PARA REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cta-button, .whatsapp-float {
        animation: none;
    }
}