/* Global Typography & Palette styling */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--dark-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar .logo span { color: var(--primary-color); }

.navbar nav a {
    color: #d1d5db;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar nav a:hover { color: white; }

/* Buttons */
.btn-primary, .btn-large, .btn-submit-order {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-large { padding: 0.8rem 2rem; font-size: 1.1rem; display: inline-block; }
.btn-secondary { border: 1px solid #d1d5db; padding: 0.5rem 1.2rem; border-radius: 6px; color: white; text-decoration: none; }

/* 1. Modern CSS Parallax Mechanics */
.parallax-hero {
    background-image: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('https://images.unsplash.com/photo-1600132806370-bf17e65e942f?q=80&w=1920');
    height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.parallax-divider {
    background-image: linear-gradient(rgba(0, 102, 204, 0.4), rgba(17, 24, 39, 0.7)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=1920');
    height: 30vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content h1 { font-size: 2.8rem; margin-bottom: 1rem; font-weight: 800; }
.hero-content p { font-size: 1.3rem; margin-bottom: 2rem; color: #e5e7eb; }

/* Content Grid Structuring */
.content-block { padding: 5rem 10%; }
.secondary-bg { background-color: #f3f4f6; }
.content-block h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; font-weight: 700; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: var(--card-bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); }
.card h3 { margin-bottom: 1rem; color: var(--dark-bg); }

/* 4 & 7. Pricing Table Grid Design */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
}

.price-card .badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--dark-bg); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--dark-bg); margin-bottom: 1.5rem; }
.price span { font-size: 1rem; font-weight: 400; color: #6b7280; }

.features { list-style: none; margin-bottom: 2rem; text-align: left; }
.features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }

.btn-select-plan {
    width: 100%;
    background-color: var(--dark-bg);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.price-card.featured .btn-select-plan { background-color: var(--primary-color); }
.btn-select-plan:hover { background-color: #374151; }

/* 8. Personal Data Checkout Modal Framework */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
}

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
input {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}
input:focus { outline: 2px solid var(--primary-color); border-color: transparent; }
.btn-submit-order { width: 100%; margin-top: 1rem; padding: 0.8rem; }

.footer { background: var(--dark-bg); color: #9ca3af; padding: 2rem 5%; text-align: center; font-size: 0.9rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .navbar nav a { margin: 0 0.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .price-card.featured { transform: none; }
}
/* Authentication Layout Aesthetics */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem; /* REDUCED from 3rem: Saves 48px of vertical screen real estate */
    min-height: 80vh;
}

.auth-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 2rem; /* REDUCED top/bottom padding from 2.5rem: Saves 24px */
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.auth-box h2 {
    font-size: 1.8rem;
    color: var(--dark-bg);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.25rem; /* REDUCED from 2rem: Saves 12px */
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* REDUCED from 1.25rem: Saves about 16px across all fields */
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-password:hover { text-decoration: underline; }

/* Chilean Phone Prefix Field alignment wrapper */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    overflow: hidden;
}

.phone-input-wrapper .country-code {
    background-color: #f3f4f6;
    padding: 0.65rem 0.75rem;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid var(--border-color);
    user-select: none;
}

.phone-input-wrapper input {
    border: none !important;
    outline: none !important;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
}

.form-checkbox input {
    width: auto;
    margin-top: 0.2rem;
}

.form-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-auth {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 0.5rem;
}

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

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   AUTHENTICATION & SECURITY LAYOUT EXPANSIONS
   ========================================================================== */

/* Fix explicit layout box centering across high-res viewports */
.auth-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-bg);
}

/* Green safety indicator top accent line */
.secure-border {
    border-top: 4px solid #10b981 !important;
}

/* Secure Top SSL Status Badge */
.security-badge-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ecfdf5;
    color: #065f46;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Form block internal component arrangement adjustments */
.auth-form .form-group {
    margin-bottom: 0.5rem; /* Prevents global modal .form-group conflicts */
}

/* Clean Phone inputs to behave within structural wrappers */
.phone-input-wrapper input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.65rem;
    width: 100%;
}

.phone-input-wrapper input:focus {
    outline: none !important;
}

/* Interactive Password Indicator Metrics */
.strength-bar-container {
    background-color: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
    width: 100%;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Enterprise Security Primary Action Button */
.btn-auth-secure {
    background-color: #10b981;
    color: white !important;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 0.5rem;
    text-decoration: none;
}

.btn-auth-secure:hover {
    background-color: #059669;
}