/* --- Variables & Presets --- */
:root {
    /* Colors - Medical/Gastro Theme */
    --primary-color: #0369a1;        /* Deep Blue */
    --primary-light: #e0f2fe;    
    --primary-dark: #075985;
    
    --secondary-color: #0ea5e9;      /* Light Blue */
    
    --accent-color: #bad532;         /* FAGE Lime Green */
    --accent-light: #eaefcc;
    
    --text-main: #1e293b;            /* Slate 800 */
    --text-muted: #64748b;           /* Slate 500 */
    
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    
    --border-color: #e2e8f0;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spaces */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: var(--space-md);
}

.mt-3 { margin-top: 1rem; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

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

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #044b75);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.4);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-dark);
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 120px; /* offset header */
    padding-bottom: var(--space-xl);
    background: linear-gradient(rgba(3, 105, 161, 0.8), rgba(7, 89, 133, 0.9)), url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Optional overlay decoration if needed */
.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(186, 213, 50, 0.15); /* FAGE Green tint */
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(186, 213, 50, 0.6);
    color: var(--accent-light);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
    font-style: italic;
    opacity: 0.9;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* --- Details Section --- */
.details-grid {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.detail-card {
    background-color: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.7);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.5) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.detail-card > * {
    position: relative;
    z-index: 1;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(3, 105, 161, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
}

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

.detail-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
    transition: all 0.3s ease;
}

.detail-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: white;
}

.detail-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Certification Banner */
.certification-banner {
    background: linear-gradient(to right, rgba(3, 105, 161, 0.05), rgba(14, 165, 233, 0.05));
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent-color);
    background: var(--accent-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.cert-text h3 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.cert-text p {
    margin: 0;
    color: var(--text-muted);
}

/* --- Program Section --- */
.program-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.module-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.module-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: var(--space-md) var(--space-lg);
    color: white;
}

.module-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.module-body {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex-grow: 1;
}

.class-item {
    padding-bottom: var(--space-md);
    border-bottom: 1px dashed var(--border-color);
}

.class-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.class-title {
    font-size: 1.15rem;
    font-family: var(--font-sans);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.class-badge {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.class-info p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.class-info p:last-child {
    margin-bottom: 0;
}

.class-info strong {
    color: var(--text-main);
}

.accent-icon {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

/* --- Pricing Section --- */
.pricing-grid {
    grid-template-columns: repeat(1, 1fr);
    align-items: stretch;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.price-feature-group {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-feature-group .grid-2 {
    flex-grow: 1;
}

.group-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.price-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(3, 105, 161, 0.15), 0 8px 10px -5px rgba(3, 105, 161, 0.05);
    border-color: var(--primary-light);
    z-index: 2;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.price-card.special {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.price-card.special::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.price-card h4 {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.price {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    white-space: nowrap; /* Force exactly one line */
}

.price.usd {
    color: var(--primary-color);
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.ars-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agreements-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-sm);
}

/* --- Registration Section --- */
.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 992px) {
    .registration-wrapper {
        grid-template-columns: 3fr 2fr;
    }
}

.registration-info h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.registration-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.steps-container {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.steps-container::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(14,165,233,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.steps-container.foreign-steps {
    border-left-color: var(--secondary-color);
}

.steps-container h3 {
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.custom-steps {
    padding-left: 1.5rem;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.custom-steps li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.custom-steps li::marker {
    color: #8da421; /* Slightly darker FAGE Green for text contrast */
    font-weight: bold;
}

.bank-details {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.bank-details h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .bank-details ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bank-details li {
    font-size: 0.95rem;
}

.alias {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-family: monospace;
}

.action-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
}

.action-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

.action-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        justify-content: space-between;
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-contact h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-contact p {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #94a3b8;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}
