/* PROYECTO: TodoParaFestejar.com */

:root {
    --mexican-pink: #E91E63;
    --cobalt-blue: #1a237e;
    --cempasuchil-yellow: #FFB800;
    --dark: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f5f6fa;
    --gray: #999999;
    --radius-pill: 50px;
    --radius-soft: 18px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 1. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* 2. HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 5px 0;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--cobalt-blue);
}

.logo span.para {
    font-weight: 400;
    text-transform: lowercase;
    color: #666;
}

.logo span.festejar {
    color: var(--mexican-pink);
}

/* --- BUSCADOR DEL HEADER (Ajuste Dinámico) --- */
#dynamic-search-container {
    flex: 1;
    max-width: 350px;
    margin: 0 15px;
}

#dynamic-search-container .search-form {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: var(--radius-pill);
    padding: 2px 2px 2px 10px;
    height: 40px;
}

#dynamic-search-container .form-group {
    flex: 1;
    padding: 0 5px;
    display: flex;
    align-items: center;
}

#dynamic-search-container i {
    color: var(--gray);
    font-size: 0.8rem;
    margin-right: 5px;
}

#dynamic-search-container input,
#dynamic-search-container select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.8rem;
}

#dynamic-search-container .btn-search {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mexican-pink);
    color: white;
    border: none;
    cursor: pointer;
}

/* 3. CHIPS Y BOTONES REDONDEADOS */
.header-chips {
    display: flex;
    gap: 15px;
    align-items: center;
}

.chip-btn,
.filter-toggle-btn,
.filter-tag,
.btn-details {
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    transition: var(--transition);
}

.header-chips .chip-btn {
    background: rgba(207, 216, 220, 0.4);
    padding: 8px 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(55, 71, 79, 0.2);
    color: #37474f;
}

/* 4. BARRA DE FILTROS DE CATEGORÍA */
.filter-bar-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.filter-toggle-btn.cobalt-style {
    width: 100%;
    background-color: var(--cobalt-blue) !important;
    color: white !important;
    padding: 20px 25px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: #fff;
}

.filters-content.open {
    max-height: 500px;
    padding: 30px;
    border: 1px solid #eee;
}

.filter-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
}

.filter-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .filter-form-grid {
        grid-template-columns: 1fr;
    }
}

/* 5. GRID Y TARJETAS DE PROVEEDORES */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.provider-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    border-color: var(--cobalt-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.provider-image {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

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

.badge-premium {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--cempasuchil-yellow);
    color: #333;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-details {
    display: block;
    text-align: center;
    border: 2px solid var(--cobalt-blue);
    color: var(--cobalt-blue);
    padding: 12px;
    font-size: 0.75rem;
    margin-top: 15px;
}

.btn-details:hover {
    background: var(--cobalt-blue);
    color: #fff;
}

#total-results {
    max-width: 1200px;
    margin: 0 auto 30px !important;
    padding: 0 20px;
    text-align: left;
    font-weight: 700;
    color: var(--cobalt-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* 6. PUBLICIDAD (GOOGLE ADS) */
.ad-slot {
    width: 100%;
    margin: 30px auto;
    text-align: center;
    background: #fdfdfd;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    display: block;
    overflow: hidden;
    padding: 10px;
}

.ad-horizontal {
    max-width: 1200px;
    min-height: 100px;
}

.ad-square {
    max-width: 350px;
    min-height: 250px;
    margin-left: auto;
    margin-right: auto;
}

.ad-article {
    max-width: 100%;
    margin: 40px 0;
    border: none;
    background: transparent;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.ad-card-style {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.ad-card-style:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--cobalt-blue);
}

.ad-card-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
}

.ad-text-hint {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* 7. FOOTER */
.main-footer {
    background: #2D3436;
    color: #FAFAFA;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand .footer-logo {
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.footer-brand .para {
    color: #ccc;
    font-weight: 400;
}

.footer-brand .festejar {
    color: var(--mexican-pink);
}

.footer-brand .dot-com {
    font-size: 1rem;
    color: #888;
}

.footer-tagline {
    color: #999;
    font-size: 0.85rem;
    margin-top: 10px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #FAFAFA;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--mexican-pink);
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon.fb {
    background-color: #1877F2;
}

.social-icon.yt {
    background-color: #FF0000;
}

.social-icon.insta {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.footer-bottom {
    border-top: 1px solid #3d4446;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 8. SECCIÓN REVISTA / BLOG */
.article-body-container p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    padding-right: 15px;
    color: var(--dark);
    font-weight: 900;
}

/* 9. ESTILOS ESPECÍFICOS DEL HOME (index.html) */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: #1a1a1a url('images/portada.jpg') no-repeat center center/cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- BUSCADOR DEL HERO (Ajuste Dinámico) --- */
#hero-search-container .search-form {
    background: white;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

#hero-search-container .form-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

#hero-search-container .form-group:last-of-type {
    border-right: none;
}

#hero-search-container i {
    color: var(--gray);
    margin-right: 10px;
}

#hero-search-container input,
#hero-search-container select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

#hero-search-container .btn-search {
    background: var(--mexican-pink);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* --- ARMONÍA CATEGORÍAS --- */
.categories-section {
    padding: 60px 20px;
    text-align: center;
}

.categories-section h2,
.section-title {
    text-align: center !important;
    margin: 0 auto 60px !important;
    font-size: 2.2rem;
    color: var(--cobalt-blue);
    width: 100%;
    display: block;
}

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

.category-card {
    background: var(--gray-light);
    padding: 40px 20px;
    border-radius: var(--radius-soft);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    background: white;
    border-color: var(--mexican-pink) !important;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 3rem;
    color: var(--mexican-pink);
    margin-bottom: 15px;
}

/* 10. RESPONSIVE MÓVIL */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .header-search {
        max-width: 100%;
        width: 100%;
        margin: 5px 0;
    }

    .header-search .search-form {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .header-chips {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    #hero-search-container .search-form {
        flex-direction: column;
        border-radius: 20px;
    }

    #hero-search-container .form-group {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px;
        width: 100%;
    }
}

/* 11. SECCIÓN: ¿QUÉ ESTÁS PLANEANDO? */
.event-types-section,
.section-container {
    padding: 60px 20px !important;
    background-color: #fdfdfd;
    text-align: center;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-card {
    background: #fff;
    border-radius: var(--radius-soft);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--cobalt-blue) !important;
}

.event-image {
    font-size: 3.5rem;
    color: var(--cobalt-blue);
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.event-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

/* 12. SECCIÓN: PROVEEDORES DESTACADOS*/
.featured-section {
    padding: 60px 20px !important;
    background-color: #fff;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.provider-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.provider-image {
    width: 100% !important;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

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

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.rating {
    color: var(--cempasuchil-yellow);
    font-size: 0.9rem;
    margin: 10px 0;
}

.rating span {
    color: #888;
    margin-left: 5px;
    font-weight: 400;
}

.tag-mini {
    background: var(--gray-light);
    color: var(--cobalt-blue);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 13. DETALLE: ESTRUCTURA, CAPSULITAS Y MAPA */
.detail-container-new {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.detail-hero-image {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.detail-layout-new {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-main-content h1 {
    font-size: 2.5rem;
    color: var(--cobalt-blue);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    border-left: 4px solid var(--mexican-pink);
    padding-left: 15px;
}

.detail-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.amenity-item {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.amenity-item i {
    color: var(--mexican-pink);
    font-size: 0.9rem;
}

.amenity-item:hover {
    background-color: #fff;
    border-color: var(--cobalt-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.small-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item img {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.detail-map-box {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.detail-map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 14. DETALLE: SIDEBAR STICKY Y BOTÓN WHATSAPP */
.sidebar-info-block {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
}

.sidebar-info-block strong {
    color: var(--dark);
    display: block;
    margin-bottom: 4px;
}

.sidebar-info-block i {
    color: var(--mexican-pink);
    width: 20px;
}

#side-tel {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-whatsapp-large {
    font-size: 1rem;
    padding: 16px;
    text-align: center;
    background-color: #25D366;
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.trust-badge-container {
    font-size: 0.8rem;
    color: #999;
    margin-top: 25px;
    text-align: center;
    border-top: 1px dotted #eee;
    padding-top: 20px;
}

/* --- ESTADO VACÍO (Cuando no encuentra el ID) --- */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* --- BADGE DE CATEGORÍA --- */
.category-badge {
    background: var(--gray-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--cobalt-blue);
}

/* --- MODAL DE GALERÍA PROFESIONAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
}

.nav-btn.left {
    left: 10px;
}

.nav-btn.right {
    right: 10px;
}

/* 15. PÁGINA DE CONTACTO */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 2.8rem;
    color: var(--cobalt-blue);
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-info-card {
    background: #fdfdfd;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 6px solid var(--mexican-pink);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--mexican-pink);
    font-family: 'Montserrat', sans-serif;
}

.contact-info-card p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.direct-contact {
    margin-top: 2rem;
    border-top: 1px dashed #eee;
    padding-top: 2rem;
}

.direct-contact p {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

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

.contact-form-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.9rem;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--mexican-pink);
}

.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-header h1 {
        font-size: 2.2rem;
    }
}

/* 16. PÁGINAS LEGALES (Privacidad y Términos) */
.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--cobalt-blue);
    margin-bottom: 10px;
}

.legal-date {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

.legal-content {
    font-family: 'Poppins', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content h2 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid var(--mexican-pink);
    padding-left: 15px;
}

.legal-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: #555;
}

.legal-content strong {
    color: var(--cobalt-blue);
}

/* 17. RESULTADOS: BARRA SUPERIOR AZUL (DISEÑO CAPSULA) */
.results-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.results-header-block h1 {
    font-size: 2.2rem;
    color: var(--cobalt-blue);
    margin-bottom: 5px;
}

.filter-capsule-container {
    position: relative;
    margin-bottom: 40px;
    z-index: 100;
}

.filter-toggle-capsule {
    background-color: var(--cobalt-blue);
    color: white;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
    transition: transform 0.2s, background 0.3s;
}

.filter-toggle-capsule:hover {
    background-color: #151b60;
    transform: translateY(-2px);
}

.filters-panel {
    background: #fff;
    max-width: 1000px;
    margin: 15px auto 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.filters-panel.open {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    padding: 30px;
}

.filters-grid-internal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.filter-group h4 {
    color: var(--mexican-pink);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: 0.2s;
}

.filter-options label:hover {
    color: var(--cobalt-blue);
    transform: translateX(5px);
}

.filter-options input {
    accent-color: var(--mexican-pink);
    transform: scale(1.1);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 18. PROVEEDORES ESCRITORIO */
.detail-layout-new {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    position: relative;
}

.detail-sidebar-new {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    z-index: 10;
    height: auto !important;
}

.sticky-price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    position: relative;
    top: 0;
}

/* 19. PROVEEDORES MÓVIL */
@media (max-width: 768px) {
    .detail-layout-new {
        display: block !important;
    }

    .sticky-price-card {
        position: static !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    .detail-container-new {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .detail-hero-image {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 15px;
    }

    .detail-main-content,
    .detail-section,
    .detail-sidebar-new {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        display: block;
    }

    .detail-section p {
        text-align: justify;
        width: 100% !important;
    }

    .small-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 15px !important;
    }

    .gallery-item {
        width: 100% !important;
        height: 110px !important;
    }

    .detail-map-box,
    .detail-map-box iframe {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 15px;
    }
}

/* 20. RESULTADOS: BARRA SUPERIOR AZUL Y FILTROS */
.results-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.results-badge {
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* CÁPSULA DE FILTROS */
.filter-capsule-container {
    position: relative;
    margin-bottom: 40px;
    z-index: 100;
}

.filter-toggle-capsule {
    background-color: var(--cobalt-blue);
    color: white;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
}

.filters-panel {
    background: #fff;
    max-width: 1000px;
    margin: 15px auto 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.filters-panel.open {
    max-height: 500px;
    opacity: 1;
    padding: 30px;
}

.filters-grid-internal .filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #f9f9f9;
    padding: 10px 20px;
    border-radius: 30px;
    transition: 0.2s;
}

.filter-options label:hover {
    background: #eef2ff;
    color: var(--cobalt-blue);
}

/* TARJETAS EN RESULTADOS */
.provider-info {
    padding: 20px;
}

.provider-info h3 {
    font-size: 1.1rem;
    color: var(--cobalt-blue);
}

.location-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}