:root {
    --verde-oscuro: #1B5E20;
    --verde-medio: #4CAF50;
    --verde-azulado: #009688;
    --blanco: #ffffff;
    --gris-claro: #f5f5f5;
    --gris: #757575;
    --negro: #212121;
    --danger: #d32f2f;
    --warning: #ff9800;
    --success: #388e3c;
}

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

body {
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--negro);
    background-color: var(--gris-claro);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    color: var(--negro);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    padding: 10px 12px;
    border: 1px solid #d9e5da;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"] {
    font-size: 13px;
    padding: 8px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--verde-azulado);
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.14);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--negro);
}

.form-row > input,
.form-row > select,
.form-row > textarea {
    width: 100%;
    min-width: 0;
}

.form-group:last-child,
.form-row:last-child {
    margin-bottom: 0;
}

form .form-row + .btn,
form .form-group + .btn,
form label + .btn {
    margin-top: 10px;
}

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

a {
    color: var(--verde-azulado);
    text-decoration: none;
}

a:hover {
    color: var(--verde-oscuro);
}

/* Header */
.header {
    background: white;
    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: 15px 20px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: var(--negro);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--verde-oscuro);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--verde-medio);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-welcome {
    color: var(--gris);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--verde-medio);
    color: white;
}

.btn-primary:hover {
    background: var(--verde-oscuro);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--verde-medio);
    color: var(--verde-medio);
}

.btn-outline:hover {
    background: var(--verde-medio);
    color: white;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-azulado));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section.bg-light {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--verde-oscuro);
    margin-bottom: 40px;
}

.page-header {
    background: var(--verde-oscuro);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-azulado));
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .news-image {
    height: 200px;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .news-content {
    padding: 20px;
}

.news-card .news-date {
    color: var(--gris);
    font-size: 13px;
}

.news-card h3 {
    color: var(--verde-oscuro);
    margin: 10px 0;
    font-size: 18px;
}

.news-card p {
    color: var(--gris);
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--verde-azulado);
    font-weight: 600;
}

/* News List (Full) */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-full {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.news-full .news-image {
    height: 350px;
    overflow: hidden;
}

.news-full .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-full .news-content {
    padding: 30px;
}

.news-category {
    display: inline-block;
    background: var(--verde-medio);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

.news-full h2 {
    color: var(--verde-oscuro);
    font-size: 28px;
    margin: 15px 0;
}

.news-full p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-full ul, .news-full ol {
    margin: 15px 0 15px 30px;
}

.news-full li {
    margin-bottom: 8px;
}

/* Zones Grid */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.zone-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.zone-card:hover {
    transform: translateY(-5px);
}

.zone-card i {
    font-size: 40px;
    color: var(--verde-medio);
    margin-bottom: 15px;
}

.zone-card h3 {
    color: var(--verde-oscuro);
    font-size: 18px;
    margin-bottom: 10px;
}

.zone-card p {
    color: var(--gris);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 36px;
    color: var(--verde-medio);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--verde-oscuro);
    font-size: 18px;
    margin-bottom: 10px;
}

/* Zones Detail */
.zones-detail-grid {
    display: grid;
    gap: 40px;
}

.zone-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.zone-detail-card .zone-image {
    height: 350px;
    overflow: hidden;
}

.zone-detail-card .zone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zone-detail-card .zone-info {
    padding: 40px;
}

.zone-detail-card h2 {
    color: var(--verde-oscuro);
    font-size: 28px;
    margin-bottom: 15px;
}

.zone-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gris);
}

.zone-meta i {
    color: var(--verde-azulado);
    margin-right: 5px;
}

.zone-info p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.zone-info ul {
    margin-bottom: 20px;
}

.zone-info li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.zone-info li::before {
    content: '✓';
    color: var(--verde-medio);
    position: absolute;
    left: 0;
}

/* Reservation Container */
.reservation-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.reservation-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zone-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.zone-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--gris-claro);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-align: left;
}

.zone-btn:hover,
.zone-btn.active {
    background: var(--verde-medio);
    color: white;
}

.zone-btn i {
    font-size: 18px;
}

.calendar-legend h4 {
    color: var(--verde-oscuro);
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: white;
    border: 2px solid var(--verde-medio);
}

.legend-color.reserved {
    background: var(--danger);
}

.legend-color.my-reservation {
    background: var(--verde-azulado);
}

/* Calendar */
.calendar-main {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    color: var(--verde-oscuro);
    font-size: 22px;
}

.cal-nav {
    background: var(--verde-medio);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.cal-nav:hover {
    background: var(--verde-oscuro);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--verde-oscuro);
    color: white;
    border-radius: 8px 8px 0 0;
}

.calendar-weekdays div {
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.calendar-day {
    min-height: 80px;
    padding: 10px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: white;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #f9f9f9;
}

.calendar-day.empty {
    background: var(--gris-claro);
    cursor: default;
}

.calendar-day.today {
    background: #e8f5e9;
}

.calendar-day.has-reservation {
    background: #ffebee;
}

.day-number {
    font-weight: 600;
    color: var(--verde-oscuro);
}

.calendar-day.today .day-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--verde-medio);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
}

.reservation-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.reservation-dot {
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
}

.reservation-dot.my {
    background: var(--verde-azulado);
}

/* Time Slots */
.time-slots {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.time-slots h4 {
    color: var(--verde-oscuro);
    margin-bottom: 15px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 10px;
    background: var(--gris-claro);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    background: var(--verde-medio);
    color: white;
}

.time-slot.reserved {
    background: var(--danger);
    color: white;
    cursor: not-allowed;
}

/* Reservation Form */
.reservation-form {
    margin-top: 25px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
}

.reservation-form h4 {
    color: var(--verde-oscuro);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--negro);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--verde-azulado);
}

/* My Reservations */
.my-reservations {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--verde-medio);
}

.my-reservations h3 {
    color: var(--verde-oscuro);
    font-size: 24px;
    margin-bottom: 20px;
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservation-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.res-info h4 {
    color: var(--verde-oscuro);
    margin-bottom: 5px;
}

.res-info p {
    color: var(--gris);
    font-size: 14px;
}

.res-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.res-status.approved {
    background: #e8f5e9;
    color: var(--success);
}

.res-status.pending {
    background: #fff3e0;
    color: var(--warning);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-azulado));
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    max-width: 150px;
    margin-bottom: 15px;
}

.login-header h1 {
    color: var(--verde-oscuro);
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gris);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--verde-azulado);
    font-weight: 600;
}

.register-link {
    margin-top: 10px;
    color: var(--gris);
}

.login-demo {
    margin-top: 25px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
}

.login-demo h4 {
    color: var(--verde-oscuro);
    margin-bottom: 10px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--verde-medio);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-icon i {
    font-size: 24px;
    color: var(--verde-medio);
}

.dashboard-card h3 {
    color: var(--verde-oscuro);
    font-size: 18px;
    margin-bottom: 15px;
}

.card-content {
    margin-bottom: 15px;
}

.card-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.mini-item:last-child {
    border-bottom: none;
}

.status {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status.approved, .status.resolved {
    background: #e8f5e9;
    color: var(--success);
}

.status.pending {
    background: #fff3e0;
    color: var(--warning);
}

.bill-info {
    text-align: center;
}

.bill-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--verde-oscuro);
    margin: 10px 0;
}

.bill-date {
    color: var(--gris);
    font-size: 14px;
}

.no-data {
    color: var(--gris);
    font-style: italic;
}

/* Complaints */
.complaint-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.complaint-form-card,
.complaint-list-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.complaint-form-card h2,
.complaint-list-card h2 {
    color: var(--verde-oscuro);
    margin-bottom: 25px;
    font-size: 22px;
}

.complaints-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.complaint-item {
    padding: 20px;
    background: var(--gris-claro);
    border-radius: 8px;
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.complaint-header h4 {
    color: var(--verde-oscuro);
    font-size: 16px;
}

.complaint-status {
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.complaint-status.pending {
    background: #fff3e0;
    color: var(--warning);
}

.complaint-status.resolved {
    background: #e8f5e9;
    color: var(--success);
}

.complaint-date,
.complaint-type {
    font-size: 13px;
    color: var(--gris);
    margin-bottom: 5px;
}

.complaint-desc {
    margin-top: 10px;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--negro);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--verde-medio);
    margin-bottom: 15px;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--verde-oscuro);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .reservation-container,
    .complaint-container {
        grid-template-columns: 1fr;
    }
    
    .zone-detail-card {
        grid-template-columns: 1fr;
    }
    
    .zone-detail-card .zone-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-list a {
        display: block;
        padding: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .zones-grid {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 25px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
