/* =====================================================
   IONIA - Landing Pages por Ciudad CSS
   Estilos específicos para SEO local
   ===================================================== */

/* Hero Ciudad */
.hero-ciudad {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/pattern-grid.svg') repeat;
    opacity: 0.05;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 120, 212, 0.15) 0%, transparent 60%);
}

.hero-ciudad .container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 120, 212, 0.2);
    color: #00a4ef;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 164, 239, 0.3);
}

.hero-ciudad h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-ciudad h1 .highlight {
    background: linear-gradient(90deg, #00a4ef, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00a4ef;
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-trust {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-trust img {
    height: 40px;
    opacity: 0.9;
}

/* Form Card */
.hero-form-wrapper {
    position: relative;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.form-header {
    background: linear-gradient(135deg, #0078d4, #00a4ef);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.lead-form {
    padding: 30px;
}

.lead-form .form-group {
    margin-bottom: 15px;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.lead-form input:focus,
.lead-form select:focus {
    outline: none;
    border-color: #0078d4;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
}

.lead-form input.error,
.lead-form select.error {
    border-color: #d83b01;
}

.lead-form .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.form-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
}

.form-privacy i {
    margin-right: 5px;
    color: #107c10;
}

.form-privacy a {
    color: #0078d4;
}

.form-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #666;
}

.form-social-proof .avatars {
    display: flex;
}

.form-social-proof .avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    object-fit: cover;
}

.form-social-proof .avatars img:first-child {
    margin-left: 0;
}

/* Clientes Locales */
.clientes-locales {
    background: #f8f9fa;
    padding: 40px 0;
}

.clientes-label {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.clientes-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.clientes-logos img {
    height: 35px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.clientes-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Sección genérica */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(0, 164, 239, 0.1));
    color: #0078d4;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header h2 .highlight {
    color: #0078d4;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Ventajas Grid */
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ventaja-card {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ventaja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 120, 212, 0.12);
    border-color: rgba(0, 120, 212, 0.2);
}

.ventaja-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0078d4, #00a4ef);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.ventaja-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.ventaja-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Servicios Lista */
.servicios-lista {
    max-width: 900px;
    margin: 0 auto;
}

.servicio-item {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.servicio-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 35px rgba(0, 120, 212, 0.1);
}

.servicio-numero {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 120, 212, 0.15);
    line-height: 1;
    flex-shrink: 0;
}

.servicio-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.servicio-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.servicio-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
}

.servicio-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.servicio-features li i {
    color: #107c10;
    font-size: 0.8rem;
}

/* Caso de Éxito Local */
.caso-exito-local {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.caso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.caso-badge {
    display: inline-block;
    background: rgba(0, 164, 239, 0.2);
    color: #00a4ef;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.caso-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.caso-intro {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 25px;
}

.caso-problema,
.caso-solucion {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.caso-problema h4,
.caso-solucion h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.caso-problema h4 i {
    color: #ff6b6b;
}

.caso-solucion h4 i {
    color: #ffd93d;
}

.caso-problema p,
.caso-solucion p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.caso-resultados {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.resultado {
    text-align: center;
}

.resultado-numero {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00a4ef;
}

.resultado-texto {
    font-size: 0.85rem;
    opacity: 0.8;
}

.caso-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 20px;
    border-left: 4px solid #00a4ef;
    margin: 0;
    opacity: 0.95;
}

.caso-quote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: #00a4ef;
}

.caso-imagen img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Zonas de Cobertura */
.zonas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.zona-grupo {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.zona-grupo h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0078d4;
}

.zona-grupo h4 i {
    color: #0078d4;
}

.zona-grupo ul {
    list-style: none;
}

.zona-grupo li {
    padding: 8px 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.zona-grupo li:last-child {
    border-bottom: none;
}

/* FAQ Local */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    color: #0078d4;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: #666;
    line-height: 1.7;
}

/* CTA Ciudad */
.cta-ciudad {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-ciudad .btn-primary {
    background: white;
    color: #0078d4;
}

.cta-ciudad .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.cta-ciudad .btn-outline {
    border-color: white;
    color: white;
}

.cta-ciudad .btn-outline:hover {
    background: white;
    color: #0078d4;
}

.cta-contact {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.cta-contact a:hover {
    opacity: 1;
}

/* Floating CTAs */
.floating-ctas {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.whatsapp-float,
.phone-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-float {
    background: #25D366;
}

.phone-float {
    background: #0078d4;
}

.whatsapp-float:hover,
.phone-float:hover {
    transform: scale(1.1);
}

.whatsapp-float.pulse {
    animation: pulse-whatsapp 1s ease;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Social Notification */
.social-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    max-width: 320px;
}

.social-notification.show {
    transform: translateX(0);
}

.sn-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.sn-content {
    flex: 1;
}

.sn-text {
    font-size: 0.9rem;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.sn-time {
    font-size: 0.75rem;
    color: #107c10;
}

.sn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-ciudad .container {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }

    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zonas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-ciudad .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-ciudad h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-form-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    .caso-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .caso-imagen {
        order: -1;
    }

    .servicio-item {
        flex-direction: column;
        gap: 15px;
    }

    .servicio-numero {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-ciudad {
        padding: 100px 0 60px;
    }

    .hero-ciudad h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .ventajas-grid {
        grid-template-columns: 1fr;
    }

    .zonas-grid {
        grid-template-columns: 1fr;
    }

    .caso-resultados {
        flex-direction: column;
        gap: 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-contact {
        flex-direction: column;
        gap: 15px;
    }

    .floating-ctas {
        bottom: 20px;
        right: 20px;
    }

    .social-notification {
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .servicio-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-ciudad h1 {
        font-size: 1.7rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .form-card {
        margin: 0 -10px;
        border-radius: 12px;
    }

    .lead-form {
        padding: 20px;
    }

    .clientes-logos {
        gap: 25px;
    }

    .clientes-logos img {
        height: 25px;
    }
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 4rem;
    color: #107c10;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.form-success p {
    color: #666;
}

/* Field Error */
.field-error {
    display: block;
    color: #d83b01;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 380px;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification-content h4 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.notification-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.notification-buttons {
    display: flex;
    gap: 10px;
}

.notification-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.notification-btn.primary {
    background: #0078d4;
    color: white;
}

.notification-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
}
