/* ==========================================================================
   SIEMPRE CONTIGO - DESIGN SYSTEM COMPLETO
   Colores: Azul Confianza (#143B6E), Verde Apoyo (#6E7E3E), Beige (#F4EDE3)
   Tipografías: Montserrat (Titulares), Inter (Cuerpo), Allura (Acentos)
   ========================================================================== */

:root {
    --color-primary: #143B6E;
    --color-primary-dark: #0D2647;
    --color-support: #6E7E3E;
    --color-support-light: #8B9E50;
    --color-warm-beige: #F4EDE3;
    --color-white: #FFFFFF;
    --color-offwhite: #FAF7F2;
    --color-charcoal: #1E1E1E;
    --color-gold: #D7A25C;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Allura', cursive;
}

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-offwhite);
    line-height: 1.6;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-warm-beige);
}

.text-center {
    text-align: center;
}

/* Tipografías */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

.section-title h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-title p {
    color: #555555;
    font-size: 1rem;
}

.accent-script {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 2.4em;
    color: var(--color-gold);
    display: inline-block;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-phone {
    display: inline-block;
}

.social-icons-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons-bar a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icons-bar a:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* Cabecera Principal */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Barra de Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Enlace del Logotipo */
.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.brand-logo-link svg {
    display: block;
    height: 48px;
    width: auto;
    max-width: 230px;
}

/* Bloque del partner */
.logo-partner-block {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 2px solid var(--color-gold);
    padding-left: 10px;
}

.partner-ike {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: #008FD5;
    line-height: 1;
}

.partner-text {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.1;
    color: #333333;
    letter-spacing: 0.8px;
}

/* Menú de Enlaces */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-charcoal);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* Botón Contratar en Navbar */
.btn-primary-nav {
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.btn-primary-nav:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-warm-beige) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.badge-tag {
    display: inline-block;
    background: var(--color-support);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.hero-brand-heading {
    margin-bottom: 20px;
}

.hero-logo-img {
    height: auto;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    display: block;
    margin-bottom: 6px;
}

.hero-title-text {
    font-size: 2.7rem;
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.hero-content h1 {
    font-size: 2.7rem;
    line-height: 1.18;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #444444;
}

.hero-features-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.feat-item {
    font-weight: 600;
    color: var(--color-primary);
}

.feat-item i {
    color: var(--color-support);
    margin-right: 6px;
    font-style: normal;
    font-weight: 800;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-support);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--color-support-light);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-uppercase {
    letter-spacing: 0.8px;
    font-weight: 800;
    font-size: 1rem;
    padding: 16px;
}

/* Contenedor de la foto de Rafa */
.hero-image-wrapper {
    position: relative;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

/* Foto Principal de Rafa */
.hero-img {
    width: 100%;
    height: 460px;
    max-height: 480px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(20, 59, 110, 0.15);
    display: block;
}

/* Tarjeta de frase de Rafa */
.speech-card {
    position: absolute;
    bottom: -15px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 5px solid var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.speech-card .quote,
.quote {
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.speech-card .author,
.author {
    color: #555555;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Servicios / Beneficios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon-box {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.service-card p {
    color: #555555;
    font-size: 0.95rem;
}

/* Planes y Precios */
.planes-banner-highlight {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-lead {
    text-align: center;
    color: #555555;
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid #dddddd;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 3px solid var(--color-primary);
    box-shadow: 0 15px 40px rgba(20, 59, 110, 0.15);
    transform: scale(1.03);
}

.featured-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-support);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.price {
    margin: 25px 0;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: top;
}

.price .amount {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--color-primary);
}

.price .period {
    font-size: 0.9rem;
    color: #777777;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.features-list li span {
    color: var(--color-support);
    font-weight: 800;
    margin-right: 8px;
}

/* FAQ Acordeón */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px 18px;
    color: #555555;
    font-size: 0.95rem;
}

/* Sección de Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.contact-subtext {
    color: #555555;
    margin-top: 8px;
    font-size: 0.95rem;
}

.contact-list-items {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.c-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-warm-beige);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-item strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.c-item span {
    color: #444444;
    font-size: 0.92rem;
}

.contact-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(20, 59, 110, 0.1);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background: var(--color-primary-dark);
    color: #ffffff;
    padding: 50px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    color: #bbbbbb;
    font-size: 0.9rem;
    margin: 8px 0;
}

.footer-brand small {
    color: #888888;
}

.footer-logo-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.social-icons-footer {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-icons-footer a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icons-footer a:hover {
    background: var(--color-support);
    color: #ffffff;
    transform: translateY(-3px);
}

/* =========================================================
   RESPONSIVE GENERAL - TABLET / MOBILE
========================================================= */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image-wrapper {
        max-width: 520px;
        margin: 0 auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .section {
        padding: 52px 0;
    }

    .top-bar {
        padding: 9px 0;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        text-align: center;
    }

    .top-bar-phone {
        display: block;
        font-size: 11px;
        line-height: 1.35;
    }

    .social-icons-bar {
        justify-content: center;
        gap: 12px;
    }

    .navbar {
        justify-content: center;
        padding: 12px 18px;
    }

    .brand-logo-link {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .brand-logo-img {
        max-width: 155px;
        height: auto;
    }

    .logo-partner-block,
    .nav-menu {
        display: none;
    }

    .hero-section {
        padding: 42px 0 36px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .badge-tag {
        max-width: 100%;
        white-space: normal;
        font-size: 10px;
        line-height: 1.2;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .hero-brand-heading {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 18px;
    }

    .hero-logo-img {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 8px 0 8px;
    }

    .hero-title-text,
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .accent-script {
        display: block;
        max-width: 100%;
        font-size: 1.9rem;
        line-height: 1.2;
        margin-top: 8px;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .hero-cta-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .hero-cta-group .btn,
    .hero-cta-group .btn-secondary {
        width: 100%;
        margin-left: 0;
        padding: 13px 10px;
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 22px auto 0;
    }

    .hero-img {
        width: 100%;
        height: 360px;
        max-height: none;
        object-fit: cover;
        object-position: top center;
        border-radius: 16px;
    }

    .speech-card {
        left: 14px;
        right: 14px;
        bottom: -10px;
        max-width: calc(100% - 28px);
        padding: 14px 16px;
    }

    .speech-card .quote {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .planes-banner-highlight {
        font-size: 0.95rem;
        line-height: 1.4;
        flex-direction: column;
        gap: 4px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 30px;
    }

    .pricing-card {
        padding: 32px 22px;
    }

    .price .amount {
        font-size: 2.7rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
        gap: 12px;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 0.9rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 26px 20px;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    input,
    select {
        font-size: 0.95rem;
        padding: 12px 13px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
        padding: 9px 14px;
        font-size: 0.76rem;
        z-index: 999;
    }

    .whatsapp-float svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .main-footer {
        margin-top: 50px;
        padding: 38px 0;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .social-icons-footer {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding: 46px 0;
    }

    .brand-logo-img {
        max-width: 145px;
    }

    .hero-section {
        padding-top: 38px;
    }

    .hero-logo-img {
        max-width: 300px;
    }

    .accent-script {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cta-group {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .hero-cta-group .btn,
    .hero-cta-group .btn-secondary {
        font-size: 0.68rem;
        padding: 12px 8px;
        border-radius: 7px;
    }

    .hero-img {
        height: 340px;
    }

    .speech-card {
        left: 12px;
        right: 12px;
        bottom: -8px;
        padding: 13px 15px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px 18px;
    }

    .whatsapp-float span {
        font-size: 0.72rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-bar-phone {
        font-size: 10px;
    }

    .hero-logo-img {
        max-width: 275px;
    }

    .accent-script {
        font-size: 1.55rem;
    }

    .hero-cta-group .btn,
    .hero-cta-group .btn-secondary {
        font-size: 0.64rem;
        padding: 11px 6px;
    }

    .hero-img {
        height: 315px;
    }

    .whatsapp-float {
        padding: 8px 12px;
    }
}

/* =========================================================
   FIX: TELÉFONO EN TOP BAR SIN COLOR AZUL EN MOBILE
   Evita que el navegador pinte el número como enlace azul.
========================================================= */
.top-bar,
.top-bar * {
    color: #ffffff !important;
}

.top-bar a,
.top-bar a:link,
.top-bar a:visited,
.top-bar a:hover,
.top-bar a:active,
.top-bar-phone a,
.top-bar-phone a:link,
.top-bar-phone a:visited,
.top-bar-phone a:hover,
.top-bar-phone a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.top-bar-phone strong,
.top-bar-phone strong a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
}

/* Soporte para autolinks de iPhone/Safari */
.top-bar a[x-apple-data-detectors],
.top-bar-phone a[x-apple-data-detectors],
a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    font: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}
/* ==========================================================================
   TARJETAS INTERACTIVAS (FLIP CARDS) DE BENEFICIOS
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Contenedor con perspectiva 3D */
.service-flip-card {
    background-color: transparent;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* Efecto al pasar el cursor o al hacer clic */
.service-flip-card:hover .flip-card-inner,
.service-flip-card.is-active .flip-card-inner {
    transform: rotateY(180deg);
}

/* Cara Frontal (Texto) y Cara Trasera (Imagen) */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* Cara Frontal */
.flip-card-front {
    background-color: #ffffff;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.flip-card-front .icon-box {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.flip-card-front h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.flip-card-front p {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.5;
}

.card-hint {
    margin-top: 15px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-gold);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cara Trasera (La imagen que proporcionaste) */
.flip-card-back {
    background-color: var(--color-primary);
    transform: rotateY(180deg);
    position: relative;
}

.service-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.btn-ver-completo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(20, 59, 110, 0.85);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.btn-ver-completo:hover {
    background: var(--color-primary);
}

/* Tarjeta estándar para Asesoría Legal */
.standard-card {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: 16px;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.standard-card .icon-box {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

/* Modal Lightbox para ampliar las imágenes */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomModal 0.3s ease;
}

@keyframes zoomModal {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}