/* 
 * Seguro Familiar - UNAF Inspired Design System
 * Clean, Vibrant, Human-Centric
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0056b3;       /* Blue */
    --accent: #2563eb;        /* Vibrant Blue */
    --warning: #ffcc00;       /* Yellow */
    --success: #28a745;
    
    --bg-white: #ffffff;
    --bg-light: #f4f7fa;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    
    --radius-lg: 2.5rem;
    --radius-md: 2rem;
    --shadow: 15px 15px 40px rgba(0, 0, 0, 0.4) !important;
    --shadow-strong: 25px 25px 60px rgba(0, 0, 0, 0.6) !important;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

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

/* Header */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 4rem 0 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translate(-5px, -10px);
    box-shadow: var(--shadow-strong) !important;
    border: 2px solid var(--accent);
    z-index: 10;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Specific UNAF Blocks */
.unaf-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow) !important;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Booking Engine */
.booking-engine {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow) !important;
}

/* --- FORM STEPS & INDICATORS (HEREDADO DE S360) --- */
.steps-container {
    position: relative;
    min-height: 400px;
}

.step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.step.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.steps-indicator {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    margin-bottom: 3rem;
    padding: 0 1rem;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.indicator {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.indicator span {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    color: #999;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 auto 0.75rem;
    transition: 0.3s;
}

.indicator.active span {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.indicator p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
}

.indicator.active p {
    color: var(--primary);
}

/* Calendar & Grids */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

/* Forzar 2 columnas en las horas como en S360 */
#time-selector {
    grid-template-columns: 1fr 1fr !important;
    max-width: 500px;
    margin: 2rem auto 0;
}

.date-btn, .time-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-btn:hover, .time-btn:hover {
    border-color: var(--accent);
    background: var(--bg-light);
}

.date-btn.active, .time-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.time-btn.occupied {
    background: #f8fafc;
    color: #cbd5e1;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: #f1f5f9;
}

.invalid-input {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 968px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .grid-3 { grid-template-columns: 1fr; }
}
