/* Solo Circo Theme - Estilos principales */

/* Reset y base */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

/* Container */
.site {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    text-decoration: none;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: var(--wp--preset--color--primary, #D6AA59);
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Navegación */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: var(--wp--preset--color--primary, #D6AA59);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.primary-menu-container ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu-container a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-menu-container a:hover {
    color: var(--wp--preset--color--primary, #D6AA59);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #D6AA59) 0%, var(--wp--preset--color--secondary, #E7C160) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 0 0 2rem;
    opacity: 0.9;
}

/* Buscador */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    color: #333;
}

.search-field:focus {
    outline: none;
}

.search-submit {
    background: var(--wp--preset--color--accent, #436C7C);
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background: #2c4a57;
}

/* Main content */
.site-main {
    flex: 1;
    padding: 2rem;
}

/* Secciones */
.featured-schools {
    margin: 4rem 0;
}

.featured-schools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Grid de escuelas */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.school-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.school-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.school-card:hover .school-thumbnail img {
    transform: scale(1.05);
}

.school-content {
    padding: 1.5rem;
}

.school-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.school-title a {
    color: #333;
    text-decoration: none;
}

.school-meta {
    margin-bottom: 1rem;
}

.school-city {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Rating stars */
.school-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: var(--wp--preset--color--primary, #D6AA59);
    font-size: 1.1rem;
}

.star.filled {
    color: var(--wp--preset--color--primary, #D6AA59);
}

.star {
    color: #ddd;
}

.rating-number {
    font-weight: bold;
    color: #333;
}

/* Botones */
.button {
    display: inline-block;
    background: var(--wp--preset--color--primary, #D6AA59);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: var(--wp--preset--color--accent, #436C7C);
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
}

.footer-navigation a {
    color: white;
    text-decoration: none;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .custom-logo {
        max-height: 45px;
        max-width: 150px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .primary-menu-container.active {
        display: block;
    }
    
    .primary-menu-container ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .primary-menu-container li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-submit {
        border-radius: 0 0 8px 8px;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .featured-schools h2 {
        font-size: 2rem;
    }
}