/* ========================================
   ALFA PROJECT TEMPLATE — 4 Sections (Compact)
   ======================================== */

   :root {
    --tp-bg: #f8fafc;
    --tp-bg-alt: #f1f5f9;
    --tp-surface: #ffffff;
    --tp-accent: #0070c0;
    --tp-accent-light: #e0f2fe;
    --tp-text: #1e293b;
    --tp-text-secondary: #475569;
    --tp-text-muted: #94a3b8;
    --tp-border: #e2e8f0;
    --tp-radius: 16px;
    --tp-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    --tp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --tp-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ALFA-page {
    background: var(--tp-bg) !important;
    color: var(--tp-text);
    font-family: 'Inter', sans-serif;
}

/* ========================
   SECCIÓN 1: HERO
   ======================== */
.tp-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen to prevent aggressive vertical cropping */
    min-height: 450px;
    display: flex;
    align-items: center; /* Center the title */
    justify-content: center;
    overflow: hidden;
}

.tp-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20vh; /* Gradient fade taking up just the bottom portion */
    background: linear-gradient(to bottom, transparent, var(--tp-bg) 95%);
    z-index: 3;
    pointer-events: none;
}

.tp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.tp-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Uniform slight darkening since text is now centered */
    z-index: 1;
}

.tp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
}

/* Animaciones del Título */
@keyframes tp-title-reveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px) drop-shadow(0 0 0 transparent); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px) drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
}

@keyframes tp-title-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes tp-title-pulse {
    0%, 100% { filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
    50% { filter: drop-shadow(0 15px 40px rgba(255,255,255,0.25)); }
}

.tp-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem); /* Much larger maximum size for impact */
    font-weight: 900; /* Extra bold */
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.04em; /* Tighter letter spacing for a modern, solid look */
    
    /* Animated Metallic/Titanium Gradient */
    background: linear-gradient(
        110deg,
        #cbd5e1 0%,
        #ffffff 45%,
        #e2e8f0 50%,
        #ffffff 55%,
        #cbd5e1 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff; /* Fallback */
    
    /* Reveal and Continuous Animations */
    opacity: 0;
    animation: 
        tp-title-reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        tp-title-shine 4s linear infinite 1.2s,
        tp-title-pulse 3s ease-in-out infinite 1.2s;
}

/* ========================
   SECCIÓN 2: INFORMACIÓN DIVIDIDA
   ======================== */
.tp-split-section {
    padding: 5rem 5%;
    background: var(--tp-bg);
}

.tp-split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

/* Left: About Text */
.tp-split-left {
    padding-top: 1rem;
}

.tp-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--tp-text);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.tp-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tp-text-secondary);
    text-align: justify;
    margin-bottom: 1.5rem;
}

.tp-about-text:last-child {
    margin-bottom: 0;
}

/* Right: Specs & Badges Card */
.tp-card-stacked {
    background: var(--tp-surface);
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

/* Config Badges Inside Card */
.tp-card-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--tp-bg-alt);
    border-bottom: 1px solid var(--tp-border);
}

.tp-micro-badge {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid var(--tp-border);
    border-bottom: 1px solid var(--tp-border);
}
.tp-micro-badge:nth-child(2n) { border-right: none; }
.tp-micro-badge:nth-last-child(-n+2) { border-bottom: none; } /* Removes bottom border for last row depending on count */

.tp-micro-icon {
    font-size: 1.2rem;
    color: var(--tp-accent);
    margin-bottom: 0.5rem;
}

.tp-micro-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--tp-text);
    margin-bottom: 0.2rem;
}

.tp-micro-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specs Table Inside Card */
.tp-card-specs {
    padding: 2rem;
}

.tp-specs-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed var(--tp-border);
}

.tp-status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: tp-pulse 2s infinite;
}

@keyframes tp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.tp-status-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tp-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.tp-specs-table td {
    padding: 0.8rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--tp-bg-alt);
}

.tp-specs-table tr:last-child td {
    border-bottom: none;
}

.tp-specs-table td:first-child {
    color: var(--tp-text-muted);
    font-weight: 500;
}

.tp-specs-table td:last-child {
    color: var(--tp-text);
    font-weight: 700;
    text-align: right;
}

/* ========================
   SECCIÓN 3: GALERÍA
   ======================== */
.tp-gallery {
    padding: 0 5% 5rem;
    background: var(--tp-bg);
}

.tp-gallery-inner {
    max-width: 1400px; /* Ampliado para imágenes más grandes */
    margin: 0 auto;
}

.tp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas forzadas en desktop */
    gap: 2.5rem;
}

.tp-gallery-item {
    border-radius: var(--tp-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--tp-shadow);
    transition: var(--tp-transition);
}

.tp-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--tp-shadow-lg);
}

.tp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================
   SECCIÓN 4: CTA SEPARADO
   ======================== */
.tp-cta-section {
    background: var(--tp-surface);
    padding: 6rem 5%;
    text-align: center;
    border-top: 1px solid var(--tp-border);
}

.tp-cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tp-text);
    margin-bottom: 1.2rem;
}

.tp-cta-section p {
    color: var(--tp-text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.tp-cta-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--tp-accent);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--tp-transition);
    box-shadow: 0 8px 30px rgba(0, 112, 192, 0.3);
    margin-top: 2.5rem;
}

.tp-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 112, 192, 0.4);
    background: #005a9c;
}

/* ========================
   SECCIÓN 5: FOOTER
   ======================== */
.tp-site-footer {
    background: #030f1c;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tp-footer-logo {
    height: auto;
    max-height: 40px;
    max-width: 180px;
    opacity: 0.9;
}

.tp-footer-rights {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ========================
   LIGHTBOX GALERÍA
   ======================== */
.tp-gallery-item img {
    cursor: zoom-in;
}

.tp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tp-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.tp-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tp-lightbox-close:hover {
    opacity: 1;
}

.tp-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.tp-lightbox.active .tp-lightbox-img {
    transform: scale(1);
}
.tp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tp-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE (Mobile Opt)
   ======================== */
@media (max-width: 992px) {
    .tp-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .tp-card-stacked {
        position: static;
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .tp-hero { height: 50vh; min-height: 400px; }
    .tp-hero-title { font-size: 3rem; }
    .tp-split-section, .tp-gallery, .tp-cta-section, .tp-site-footer { padding: 4rem 5%; }
    .tp-section-title { font-size: 1.8rem; }
    .tp-gallery-grid { grid-template-columns: 1fr; }
    .tp-cta-section h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .tp-hero-title { font-size: 2.5rem; }
    .tp-card-badges { grid-template-columns: repeat(2, 1fr); }
    .tp-micro-badge { padding: 1rem 0.5rem; }
    .tp-micro-value { font-size: 1.1rem; }
    .tp-specs-table td { font-size: 0.85rem; }
}


/* ========================
   SECCIÓN 4: PRECIOS
   ======================== */
.tp-pricing-section {
    padding: 5rem 5% 4rem;
    background: var(--tp-bg);
    border-top: 1px solid var(--tp-border);
    text-align: center;
}

.tp-pricing-inner {
    max-width: 900px;
    margin: 0 auto;
}

.tp-pricing-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-text);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.tp-pricing-subtitle {
    font-size: 0.9rem;
    color: var(--tp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.tp-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tp-price-card {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 2rem 1.25rem;
    transition: var(--tp-transition);
    box-shadow: var(--tp-shadow);
}

.tp-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tp-shadow-lg);
}

.tp-price-card--featured {
    border-color: var(--tp-accent);
    background: var(--tp-accent-light);
    position: relative;
}

.tp-price-card--featured .tp-price-tag {
    color: var(--tp-accent);
}

.tp-price-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tp-text-muted);
    margin-bottom: 1rem;
}

.tp-price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 900;
    color: var(--tp-text);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.tp-price-note {
    font-size: 0.8rem;
    color: var(--tp-text-muted);
    font-weight: 500;
}

.tp-pricing-disclaimer {
    font-size: 0.78rem;
    color: var(--tp-text-muted);
    line-height: 1.6;
    text-align: left;
    border-top: 1px dashed var(--tp-border);
    padding-top: 1.5rem;
    margin-bottom: 0;
}

.tp-pricing-cta-wrap {
    margin-top: 2rem;
    text-align: center;
}

.tp-financing-btn {
    background: transparent;
    color: var(--tp-accent);
    border: 2px solid var(--tp-accent);
    box-shadow: none;
    margin-top: 0;
}

.tp-financing-btn:hover {
    background: var(--tp-accent);
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 112, 192, 0.25);
}

@media (max-width: 768px) {
    .tp-pricing-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    .tp-pricing-title { font-size: 1.6rem; }
    .tp-pricing-section { padding: 4rem 5%; }
}

/* Navigation Overrides (Liquid Glass Support) */
.ALFA-page .pill-nav.scrolled {
    background: rgba(14, 85, 175, 0.55);
}
