:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #ffc857;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-color); background: var(--light-bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header { background: var(--white); box-shadow: var(--box-shadow); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--primary-color); color: var(--white); padding: 8px 0; font-size: 14px; }
.header-top-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info a { color: var(--white); text-decoration: none; margin-right: 20px; }
.contact-info a:hover { color: var(--accent-color); }
.language-switcher a { color: var(--white); text-decoration: none; margin-left: 10px; padding: 2px 8px; border-radius: 3px; }
.language-switcher a.active { background: var(--accent-color); color: var(--primary-color); }

.header-main { padding: 15px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { color: var(--primary-color); font-size: 28px; }

.main-nav ul { display: flex; list-style: none; gap: 5px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text-color); padding: 8px 12px; border-radius: var(--border-radius); transition: all 0.3s; }
.main-nav a:hover, .main-nav a.active { background: var(--primary-color); color: var(--white); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

main { min-height: calc(100vh - 200px); }

.hero { position: relative; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-size: 48px; margin-bottom: 10px; }
.hero-subtitle { font-size: 24px; margin-bottom: 10px; }
.hero-tagline { font-size: 18px; margin-bottom: 20px; }

.btn { display: inline-block; padding: 12px 30px; background: var(--accent-color); color: var(--primary-color); text-decoration: none; border-radius: var(--border-radius); font-weight: bold; border: none; cursor: pointer; transition: all 0.3s; }
.btn:hover { background: #e6b34d; transform: translateY(-2px); }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-secondary { background: var(--secondary-color); color: var(--white); }

.features { background: var(--white); padding: 40px 0; }
.features-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.feature { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.feature i { color: var(--primary-color); font-size: 20px; }

.about { padding: 60px 0; }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about h2 { color: var(--primary-color); font-size: 32px; margin-bottom: 20px; }
.about p { font-size: 18px; margin-bottom: 20px; }

.amenities { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.amenity { display: flex; align-items: center; gap: 8px; }
.amenity i { color: var(--secondary-color); font-size: 24px; }

.availability-banner { background: var(--primary-color); color: var(--white); padding: 40px 0; text-align: center; }
.availability-banner h3 { margin-bottom: 20px; }

.location { padding: 60px 0; text-align: center; }
.location h2 { color: var(--primary-color); font-size: 32px; margin-bottom: 20px; }
.location-content { max-width: 600px; margin: 0 auto; }

.page-header { background: var(--primary-color); color: var(--white); padding: 40px 0; text-align: center; }
.page-header h1 { font-size: 36px; }

.reservas-content, .precios-content, .galeria-content, .contacto-content, .como-llegar-content, .videos-content, .mascotas-content, .resenas-content, .blog-content { padding: 60px 0; }

.reservas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calendar-section h2, .booking-form-section h2 { color: var(--primary-color); margin-bottom: 20px; }
#availability-calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.month { background: var(--white); padding: 15px; border-radius: var(--border-radius); }
.month h4 { color: var(--primary-color); margin-bottom: 10px; }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; text-align: center; margin-bottom: 5px; color: #666; font-weight: bold; }
.weekdays span { padding: 5px 0; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.days .day, .days .empty { text-align: center; padding: 8px; font-size: 14px; }
.days .day { cursor: pointer; border-radius: 4px; transition: background 0.3s; }
.days .day:hover { background: var(--secondary-color); color: var(--white); }
.days .past { color: #ccc; }
.days .occupied { background: #e74c3c; color: var(--white); cursor: not-allowed; }
.days .occupied:hover { background: #c0392b; }
.days .selected-checkin { background: #27ae60; color: var(--white); border: 2px solid #1e8449; }
.days .selected-checkout { background: #3498db; color: var(--white); border: 2px solid #2980b9; }
.days .day.selectable:hover { background: #97bc62; color: var(--white); }
.calendar-legend { display: flex; gap: 20px; margin-top: 20px; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-item.available::before { content: ''; display: block; width: 20px; height: 20px; background: var(--secondary-color); border-radius: 4px; }
.legend-item.occupied::before { content: ''; display: block; width: 20px; height: 20px; background: #e74c3c; border-radius: 4px; }

.booking-form .form-group { margin-bottom: 20px; }
.booking-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.booking-form input, .booking-form select, .booking-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: var(--border-radius); font-size: 16px; }
.booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.price-summary { background: var(--light-bg); padding: 20px; border-radius: var(--border-radius); margin: 20px 0; }
.price-row { display: flex; justify-content: space-between; padding: 10px 0; }
.price-row.total { border-top: 2px solid var(--primary-color); font-weight: bold; font-size: 18px; }

.alert { padding: 15px; border-radius: var(--border-radius); margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.precios-table { width: 100%; background: var(--white); border-radius: var(--border-radius); overflow: hidden; margin: 20px 0; }
.precios-table th, .precios-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.precios-table th { background: var(--primary-color); color: var(--white); }
.precios-table tr:hover { background: var(--light-bg); }

.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.galeria-item { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.galeria-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.galeria-item:hover img { transform: scale(1.05); }

.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.contacto-info h2, .contacto-form h2 { color: var(--primary-color); margin-bottom: 20px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-item i { color: var(--primary-color); font-size: 24px; }
.mapa iframe { border-radius: var(--border-radius); }

.como-llegar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.como-llegar-info h2, .como-llegar-info h3 { color: var(--primary-color); margin-bottom: 15px; margin-top: 20px; }

.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 30px; }
.video-item iframe { width: 100%; height: 250px; border-radius: var(--border-radius); }
.video-item h3 { margin-top: 10px; text-align: center; color: var(--primary-color); }

.mascotas-info h2 { color: var(--primary-color); margin-bottom: 20px; }
.mascotas-info ul { list-style: none; }
.mascotas-info li { margin: 10px 0; font-size: 18px; }
.mascotas-info li i { color: var(--secondary-color); margin-right: 10px; }

.resenas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.resena-item { background: var(--white); padding: 30px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--box-shadow); }
.resena-estrellas { color: var(--accent-color); font-size: 20px; margin-bottom: 15px; }
.resena-texto { font-style: italic; margin-bottom: 15px; }
.resena-autor { font-weight: bold; color: var(--primary-color); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.blog-item { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.blog-item h3 { color: var(--primary-color); margin-bottom: 10px; }
.leer-mas { color: var(--primary-color); text-decoration: none; font-weight: bold; }

.footer { background: #1a1a1a; color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: var(--secondary-color); margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section li { margin: 10px 0; }
.footer-section a { color: var(--white); text-decoration: none; }
.footer-section a:hover { color: var(--accent-color); }
.social-links { margin-top: 20px; }
.social-links a { color: var(--white); font-size: 20px; margin-right: 15px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; }
.admin-link { color: var(--secondary-color); text-decoration: none; }

.mini-month { display: inline-block; width: 30%; vertical-align: top; margin: 0 1%; background: var(--white); border-radius: var(--border-radius); padding: 15px; }
.mini-month h4 { color: var(--primary-color); margin: 0 0 10px 0; text-align: center; font-size: 14px; }
.mini-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; margin-bottom: 5px; }
.mini-weekdays span { font-size: 10px; font-weight: bold; color: #666; }
.mini-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-days > span { font-size: 11px; padding: 3px; border-radius: 3px; }
.mini-days > span.past { background:#ddd; color:#333; }
.mini-days > span.confirmada { background:#e74c3c; color:#fff; }
.mini-days > span.pendiente { background:#f39c12; color:#fff; }
.mini-days > span.disponible { background:var(--secondary-color); color:#000; }
.mini-empty { background: transparent; }

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 999; padding: 10px 0; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 12px 20px; border-radius: 0; border-bottom: 1px solid #eee; }
    .menu-toggle { display: block; }
    .header-main { position: relative; }
    .header-top-content { flex-direction: column; gap: 5px; font-size: 13px; }
    .contact-info a { margin-right: 10px; }
    
    .hero { height: 40vh; }
    .hero-content h1 { font-size: 28px; }
    .hero-subtitle { font-size: 18px; }
    .hero-tagline { font-size: 14px; }
    
    .page-header { padding: 25px 0; }
    .page-header h1 { font-size: 24px; }
    
    .reservas-grid, .contacto-grid, .como-llegar-grid { grid-template-columns: 1fr; gap: 25px; max-width: 100%; }
    .videos-grid { grid-template-columns: 1fr; }
    #availability-calendar { grid-template-columns: 1fr; }
    .calendar-section { max-width: 100%; overflow: hidden; }
    .booking-form .form-row { grid-template-columns: 1fr; }
    
    .features-grid { gap: 15px; }
    .feature { font-size: 14px; }
    
    .about h2 { font-size: 24px; }
    .about p { font-size: 16px; }
    .amenities { flex-wrap: wrap; gap: 15px; }
    
    .blog-wrapper { flex-direction: column; }
    .blog-sidebar { width: 100%; }
    .blog-grid { grid-template-columns: 1fr; }
    
    .galeria-grid, .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .gallery-category-card img { height: 120px; }
    .gallery-item img { height: 150px; }
    .calendar-day { min-height: 50px; padding: 8px 3px; font-size: 12px; }
    
    .reviews-grid { grid-template-columns: 1fr; }
    .reviews-source a { width: 100%; justify-content: center; }
    .reviews-source { flex-direction: column; align-items: stretch; }
    
    .pets-grid { grid-template-columns: 1fr; }
    .pets-card img { max-height: 180px; }
    
    .directions-step { flex-direction: column; }
    
    .precios-table, .blog-grid table, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .precios-table th, .precios-table td { padding: 8px; white-space: nowrap; }
    
    .resenas-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-section h3 { margin-bottom: 12px; }
    
    .mini-month { width: 100%; margin: 0 0 10px; }
    
    .calendar-nav { flex-direction: column; gap: 10px; text-align: center; }
    
    .video-item iframe { height: 200px; }
    
    .historia-content .container { padding: 0 15px; }
    .historia-content p { font-size: 15px; }
    
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive .admin-table { min-width: 600px; }
    
    .btn, .btn-sm { padding: 12px 20px; font-size: 16px; white-space: normal; }
    input, select, textarea { font-size: 16px; max-width: 100%; }
    .booking-form input, .booking-form select, .booking-form textarea { max-width: 100%; }
    .booking-form-section { max-width: 100%; overflow: hidden; }
}

@media (max-width: 480px) {
    .hero { height: 35vh; }
    .hero-content h1 { font-size: 22px; }
    .hero-subtitle { font-size: 16px; }
    .logo h1 { font-size: 20px; }
    .logo img { height: 30px !important; }
    
    .page-header h1 { font-size: 20px; }
    .page-header { padding: 20px 0; }
    
    .container { padding: 0 12px; }
    
    .galeria-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    
    .calendar-day { font-size: 11px; min-height: 40px; padding: 5px 2px; }
    .calendar-day .reservation-info { font-size: 8px; }
    
    .days .day, .days .empty { padding: 6px; font-size: 12px; }
    .weekdays span { font-size: 10px; }
    
    .features-grid { gap: 10px; }
    .feature { font-size: 13px; }
    
    .footer-section { text-align: center; }
    .social-links { justify-content: center; display: flex; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #availability-calendar { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}