/* =========================================
   SERVICES PAGE – Compact Refined
========================================= */

:root {
    --navy: #16324d;
    --navy-deep: #053f5c;
    --cyan: #c4e9f2;
    --orange: #ef7a0d;
    --orange-dark: #d97706;
    --orange-light: #f59e0b;
    --white: #ffffff;
    --soft-bg: #f4f7f9;
    --text: #1e293b;
    --muted: #64748b;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(22, 50, 77, 0.07);
    z-index: 9999;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #053f5c, #ef7a0d, #c4e9f2);
    transition: width 0.1s ease-out;
}

/* ---------- Hero ---------- */
.services-hero-section {
    background: linear-gradient(150deg, #16324d 0%, #053f5c 100%);
    padding: 5rem 0 4.25rem;
    position: relative;
    overflow: hidden;
}

.services-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 55% at 12% 45%, rgba(196, 233, 242, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 88% 18%, rgba(239, 122, 13, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { color: white; }

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.15rem;
    background: rgba(196, 233, 242, 0.1);
    border: 1px solid rgba(196, 233, 242, 0.28);
    border-radius: 999px;
    color: #c4e9f2;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.hero-title {
    font-size: clamp(2.25rem, 4.3vw, 3.2rem);
    font-weight: 800;
    color: #c4e9f2;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.13rem;
    color: rgba(196, 233, 242, 0.9);
    line-height: 1.55;
    max-width: 480px;
    margin-bottom: 1.8rem;
}

.hero-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #c4e9f2, #ef7a0d);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: var(--orange);
    color: white !important;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 5px 18px rgba(239, 122, 13, 0.35);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(239, 122, 13, 0.42);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(196, 233, 242, 0.5);
    color: #c4e9f2;
    background: transparent;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}
.btn-outline-light:hover {
    background: rgba(196, 233, 242, 0.12);
    border-color: #c4e9f2;
    transform: translateY(-3px);
}

/* Imagen Hero */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 5;
    border-radius: 1.7rem;
    overflow: hidden;
    box-shadow: 
        0 28px 55px -14px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(196, 233, 242, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-image-frame:hover .hero-image {
    transform: scale(1.07);
}

.image-glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle at 50% 50%, rgba(239, 122, 13, 0.2) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.image-badge {
    position: absolute;
    bottom: 1.4rem;
    left: 1.4rem;
    background: rgba(22, 50, 77, 0.85);
    backdrop-filter: blur(14px);
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(239, 122, 13, 0.4);
    color: #c4e9f2;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Stats flotantes */
.floating-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.9rem 1.15rem;
    border-radius: 1.05rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    animation: float 5.5s ease-in-out infinite;
}
.floating-stat strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #053f5c;
    line-height: 1.1;
}
.floating-stat span {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.15rem;
}
.floating-stat-1 { top: 8%; left: -1.3rem; }
.floating-stat-2 { bottom: 13%; right: -1.1rem; animation-delay: 1.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

/* ---------- Sections ---------- */
.services-section {
    padding: 4rem 0;
    background: var(--white);
}
.services-section.alt-bg {
    background: var(--soft-bg);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.2rem);
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 0.55rem;
    letter-spacing: -0.02em;
}
.subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.5;
}

/* =========================================
   SERVICE CARDS – Compact Refined
========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

.services-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    max-width: 980px;
    margin: 0 auto;
}

/* ---------- Card ---------- */
.service-card {
    background: #ffffff;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(22, 50, 77, 0.08);
    box-shadow: 0 4px 18px rgba(22, 50, 77, 0.05);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Acento superior sutil */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef7a0d, #f59e0b);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(22, 50, 77, 0.1);
    border-color: rgba(239, 122, 13, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

/* Imagen compacta */
.card-image {
    position: relative;
    height: 128px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .card-image img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 63, 92, 0.45) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Cuerpo */
.card-body {
    padding: 1.2rem 1.3rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Icono */
.icon-box {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(145deg, #16324d, #053f5c);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    box-shadow: 0 5px 14px rgba(5, 63, 92, 0.25);
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: linear-gradient(145deg, #ef7a0d, #d97706);
    transform: scale(1.07);
    box-shadow: 0 7px 18px rgba(239, 122, 13, 0.3);
}

.icon-box i {
    color: #c4e9f2;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .icon-box i {
    color: #ffffff;
}

/* Título */
.service-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Descripción */
.service-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0.95rem;
}

/* Lista */
.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.service-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: #334155;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.service-card ul li i {
    color: var(--orange);
    margin-top: 0.15rem;
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* Botón */
.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-deep);
    color: white !important;
    padding: 0.65rem 1.15rem;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 3px 10px rgba(5, 63, 92, 0.2);
}

.btn-details:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(239, 122, 13, 0.3);
}

/* =========================================
   PLAN CARDS – Compact Refined
========================================= */

.plans-section {
    padding: 4.25rem 0;
    background: var(--white);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}

.plan-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(22, 50, 77, 0.08);
    box-shadow: 0 4px 18px rgba(22, 50, 77, 0.05);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(22, 50, 77, 0.1);
}

/* Featured */
.plan-card.featured {
    border: 2px solid var(--orange);
    box-shadow: 0 8px 28px rgba(239, 122, 13, 0.15);
    transform: scale(1.03);
    z-index: 2;
}

.plan-card.featured:hover {
    transform: scale(1.03) translateY(-7px);
    box-shadow: 0 18px 42px rgba(239, 122, 13, 0.2);
}

/* Header */
.plan-header {
    background: linear-gradient(160deg, #16324d 0%, #053f5c 100%);
    color: white;
    padding: 1.45rem 1.25rem 1.3rem;
    text-align: center;
    position: relative;
}

.plan-card.featured .plan-header {
    background: linear-gradient(160deg, #053f5c 0%, #0a4a6b 55%, #16324d 100%);
}

.plan-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: linear-gradient(135deg, #ef7a0d, #f59e0b);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(239, 122, 13, 0.35);
}

.plan-header h4 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #c4e9f2;
}

.plan-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.plan-price span {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

.plan-header p {
    font-size: 0.84rem;
    color: rgba(196, 233, 242, 0.85);
    margin: 0;
}

/* Body */
.plan-body {
    padding: 1.4rem 1.3rem 1.35rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    flex-grow: 1;
}

.plan-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.plan-body ul li i {
    color: var(--orange);
    margin-top: 0.15rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Botón */
.btn-plan {
    display: block;
    text-align: center;
    background: var(--navy-deep);
    color: white !important;
    padding: 0.75rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(5, 63, 92, 0.2);
}

.btn-plan:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 122, 13, 0.3);
}

.plan-card.featured .btn-plan {
    background: linear-gradient(135deg, #ef7a0d, #d97706);
    box-shadow: 0 4px 14px rgba(239, 122, 13, 0.3);
}

.plan-card.featured .btn-plan:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 8px 22px rgba(239, 122, 13, 0.4);
}

/* ---------- CTA ---------- */
.cta-section-services {
    background: linear-gradient(150deg, #16324d, #053f5c);
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section-services h2 {
    font-size: 2.05rem;
    font-weight: 800;
    color: #c4e9f2;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.cta-section-services p {
    font-size: 1.08rem;
    color: rgba(196, 233, 242, 0.9);
    margin-bottom: 1.7rem;
    line-height: 1.55;
}

.btn-cta {
    display: inline-flex;
    background: var(--orange);
    color: white !important;
    padding: 0.9rem 2rem;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 5px 18px rgba(239, 122, 13, 0.35);
}

.btn-cta:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(239, 122, 13, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plans-grid { 
        max-width: 780px; 
        margin: 0 auto; 
    }
    .plan-card.featured {
        transform: scale(1);
    }
    .plan-card.featured:hover {
        transform: translateY(-7px);
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.8rem;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-image-wrapper { order: 2; }
    .hero-subtitle, .hero-divider { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-image-frame { max-width: 360px; aspect-ratio: 3/4; }
    .floating-stat-1 { top: 5%; left: 0; }
    .floating-stat-2 { bottom: 10%; right: 0; }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline-light { width: 100%; }
}