/* ===== NAMAHA INSPIRED DESIGN ===== */

/* Importar fuentes elegantes */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600&display=swap');

/* Variables de colores inspiradas en Namaha */
:root {
    --primary-color: #8B7355;
    --secondary-color: #A68B5B;
    --accent-color: #D4C4A8;
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    --background-light: #FDFCF8;
    --background-white: #FFFFFF;
    --border-light: #E8E5E0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Reset y base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
    font-weight: 400;
}

/* Tipografía elegante */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 300;
}

h3 {
    font-size: 1.8rem;
    font-weight: 400;
}

/* Navbar elegante */
.navbar {
    background-color: var(--background-white) !important;
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    max-height: 100px !important;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Botón primario elegante */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

/* iOS Safari no soporta background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 115, 85, 0.1);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #F5F5F5;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Cards elegantes */
.practice-card {
    background: var(--background-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
    height: 100%;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.practice-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.practice-card:hover img {
    transform: scale(1.05);
}

.practice-card .card-body {
    padding: 2rem;
}

.practice-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.practice-card .card-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.practice-card .card-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Contenedor principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Espaciado y secciones */
.section-padding {
    padding: 4rem 0;
}

/* Footer elegante */
footer {
    background: var(--text-dark);
    color: var(--accent-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Alertas elegantes */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: linear-gradient(135deg, #E8F5E8 0%, #F0F9F0 100%);
    color: #2D5A2D;
}

.alert-danger {
    background: linear-gradient(135deg, #FDF2F2 0%, #FEF7F7 100%);
    color: #7D2D2D;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .practice-card .card-body {
        padding: 1.5rem;
    }
}

/* Sistema de Búsqueda Elegante */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form {
    width: 100%;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-container {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8B7355;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 2px solid #E8E5E0;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #A68B5B;
    font-weight: 300;
}

.filter-container {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E8E5E0;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    color: #8B7355;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    transform: translateY(-1px);
}

/* Botones antiguos (mantener para compatibilidad) */
.search-btn {
    background: linear-gradient(135deg, #8B7355, #A68B5B);
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
    background: linear-gradient(135deg, #A68B5B, #8B7355);
}

.clear-btn {
    background: #f8f9fa;
    border: 2px solid #E8E5E0;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #e9ecef;
    border-color: #8B7355;
    color: #8B7355;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Nuevos botones más claros */
.search-btn-new {
    background: linear-gradient(135deg, #8B7355, #A68B5B);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.search-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
    background: linear-gradient(135deg, #A68B5B, #8B7355);
}

.clear-btn-new {
    background: #f8f9fa;
    border: 2px solid #E8E5E0;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.clear-btn-new:hover {
    background: #e9ecef;
    border-color: #8B7355;
    color: #8B7355;
    transform: translateY(-1px);
    text-decoration: none;
}

.search-results {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 15px;
    text-align: center;
}

.results-text {
    color: #8B7355;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive para búsqueda */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input-container,
    .filter-container {
        min-width: 100%;
        width: 100%;
    }
    
    .search-btn,
    .clear-btn {
        width: 100%;
        border-radius: 50px;
        height: 50px;
    }
    
    .search-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de hover para enlaces */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Mejoras para formularios */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    background: var(--background-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.15);
    background: var(--background-white);
}

/* Dropdown menus elegantes */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: 15px;
    padding: 1rem 0;
    background: var(--background-white);
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}
