/* ==========================================
   RESET Y ESTILOS GLOBALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.logo img {
    max-width: 250px;
}

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

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #8FBC4B;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #2c3e50;
}

/* ==========================================
   PAGE HEADER Y BREADCRUMB
   ========================================== */
.page-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #8FBC4B 0%, #90BD4C 100%);
}



h1 {
    font-size: 2em;
    color: white;
    margin-bottom: 10px;
    line-height: 1em;
}

.breadcrumb {
    font-size: 0.9em;
    color: white;
    justify-content: left;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    padding: 0 0.2em;
}

.breadcrumb span {
    padding: 0 0.2em;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, #8FBC4B 0%, #90BD4C 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    line-height: 1em;
}

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

/* ==========================================
   BÚSQUEDA
   ========================================== */
.search-box {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    background: white;
    cursor: pointer;
}

.form-field select:focus {
    outline: none;
    border-color: #8FBC4B;
}

.btn-search {
    padding: 12px 30px;
    background: #8FBC4B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: #8FBC4B;
    transform: translateY(-1px);
}

/* ==========================================
   RESULTS INFO
   ========================================== */
.results-info {
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    font-size: 0.9em;
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #8FBC4B;
}

/* ==========================================
   TARJETAS DE LOCALES
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Estilo para tarjetas en grid */
.cards-grid .local-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cards-grid .local-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cards-grid .local-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Estilo para tarjetas en listado */
.local-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.local-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.local-card h2 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.local-card h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.local-card h2 a:hover {
    color: #3498db;
}

.local-card .location {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.local-card .location::before {
    content: "📍 ";
}

.local-info {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Variante para listados */
.local-card .local-info {
    font-size: 0.95em;
    margin-bottom: 8px;
    text-align: right;
}

.local-info strong {
    color: #444;
}


.desc {
    font-style: italic;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.4em;
    text-align: left !important;
}

.local-activity {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
    margin-top: 8px;
}

/* ==========================================
   BADGES Y RATINGS
   ========================================== */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef3c7;
    color: #92400e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.rating-badge .stars {
    color: #ffc107;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ==========================================
   RESEÑAS
   ========================================== */
.reviews-list {
    display: grid;
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.review-author {
    font-weight: 600;
    color: #2c3e50;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1em;
}

.review-local {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.review-local a {
    color: #8FBC4B;
    text-decoration: none;
    font-weight: 500;
}

.review-local a:hover {
    text-decoration: underline;
}

.review-text {
    color: #555;
    line-height: 1.6;
}

.review-date {
    font-size: 0.85em;
    color: #999;
    margin-top: 10px;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */
.pagination {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
}

.pagination a:hover {
    background: #3498db;
    color: #fff;
}

.pagination .current {
    background: #3498db;
    color: #fff;
    font-weight: bold;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   FORMULARIOS
   ========================================== */
.form-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1.form {
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: white;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

fieldset legend {
    font-weight: 700;
    color: #333;
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.form-footer p {
    color: #666;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Validación de formularios */
input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* ==========================================
   ALERTAS
   ========================================== */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-error li {
    margin: 0.25rem 0;
}

/* ==========================================
   PÁGINA DE ÉXITO
   ========================================== */
.success-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.success-container h1 {
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.success-actions {
    margin-top: 2rem;
}

/* ==========================================
   CONTENIDO INFORMATIVO
   ========================================== */
.info-content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.info-content p {
    margin-bottom: 15px;
}

/* ==========================================
   LOCALIDADES
   ========================================== */
.localities-section {
    padding-top: 20px;
}

.localities-section h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.localities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.localities-list li a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95em;
}

.localities-list li a:hover {
    background: #3498db;
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================
   SIN RESULTADOS
   ========================================== */
.no-results {
    background: #fff;
    padding: 40px 20px;
    border-radius: 6px;
    text-align: center;
    color: #666;
}

.no-results h2 {
    color: #999;
    margin-bottom: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #8FBC4B;
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #8FBC4B;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9em;
}

/* ==========================================
   IMÁGENES DE LOCALES
   ========================================== */

/* Imagen en tarjetas de listado - Mobile First */
.local-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.local-card .local-image {
    height: 150px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    margin: -20px -20px 15px -20px;
    background: #f5f5f5;
    opacity: 0.5;
}

.local-card .local-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.local-card .local-content {
    flex: 1;
}

/* Imagen hero en página de detalle - Mobile First */
.local-hero-image {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.local-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet y Desktop - Tarjetas de listado */
@media (min-width: 768px) {
    .local-card {
        flex-direction: row;
    }

    .local-card .local-image {
        width: 200px;
        min-width: 200px;
        height: auto;
        min-height: 140px;
        margin: -20px 20px -20px -20px;
        border-radius: 6px 0 0 6px;
    }

    .local-card .local-image img {
        height: 100%;
        min-height: 180px;
    }
}

/* Desktop - Imagen hero más grande */
@media (min-width: 1024px) {
    .local-hero-image {
        max-height: 400px;
        margin-bottom: 35px;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {

    /* Navegación */
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        gap: 15px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    /* Búsqueda */
    .search-form {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Formularios */
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    fieldset {
        padding: 1rem;
    }
}

/* Static Pages */
.static-page {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.static-page h1 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.5em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.static-page-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1.1em;
}

.static-page-content h2 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.static-page-content h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.4em;
}

.static-page-content p {
    margin-bottom: 15px;
}

.static-page-content ul,
.static-page-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.static-page-content li {
    margin-bottom: 8px;
}

.static-page-content a {
    color: #3498db;
    text-decoration: none;
}

.static-page-content a:hover {
    text-decoration: underline;
}

.static-page-content strong {
    color: #2c3e50;
}

.static-page-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    color: #7f8c8d;
    font-style: italic;
}

.static-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.static-page-content table th,
.static-page-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.static-page-content table th {
    background-color: #3498db;
    color: white;
}

.static-page-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .static-page {
        padding: 20px;
    }

    .static-page h1 {
        font-size: 2em;
    }

    .static-page-content {
        font-size: 1em;
    }
}

/** BLOQUE INFO **/
.info-content {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.info-block {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
    color: #333;
}

.intro-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-table {
    width: 100%;
    overflow: scroll;
}

.intro-section h2 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 28px;
}

.intro-section p {
    font-size: 16px;
    color: #555;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.content-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-card h4 {
    color: #c41e3a;
    margin-top: 0;
    font-size: 20px;
}

.benefits-list {
    background: #fff;
    padding: 25px 25px 25px 45px;
    border-left: 4px solid #c41e3a;
    margin: 20px 0;
    border-radius: 5px;
}

.benefits-list li {
    margin: 12px 0;
    color: #444;
}

.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: #fff;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 18px;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #c41e3a;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 18px;
    background: #fff;
}

.faq-answer.active {
    max-height: 500px;
    padding: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table th {
    background: #2c3e50;
    color: #fff;
    padding: 15px;
    text-align: left;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f5f5f5;
}

.info-block h2 {
    color: #2c3e50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-block h3 {
    color: #c41e3a;
    margin-top: 35px;
    font-size: 24px;
}