/* ============================================
   RESETEO GENERAL
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f6f6f6;
    color: #333;
}

/* ENCABEZADO */
header {
    text-align: center;
    padding: 20px 0;
}

/* MENÚ PRINCIPAL */
nav {
    background-color: #0c9baa;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

nav a[href="login.html"] {
    position: absolute;
    right: 20px;
    float: none;
    margin: 0;
}

/* BANNER PRINCIPAL */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(55%);
    transition: .4s ease;
}

.banner:hover img {
    filter: brightness(40%);
}

/* TEXTO SOBRE EL BANNER */
.banner-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.banner-content h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.banner-content button {
    background-color: #ffffff;
    color: #0c9baa;
    padding: 12px 26px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s ease;
}

.banner-content button:hover {
    transform: scale(1.05);
}

/* HISTORIA */
.historia {
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
}

.contenido {
    width: 50%;
}

.historia h2 {
    color: #0c9baa;
    margin-bottom: 10px;
}

.historia p {
    margin-bottom: 20px;
}

.historia button {
    background-color: #0c9baa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.historia button:hover {
    background-color: #087988;
}

.imagen {
    width: 50%;
    display: flex;
    justify-content: center;
}

.imagen img {
    width: 40%;
    max-width: 240px;
    max-height: 250px;
    border-radius: 10px;
}

/* CARRUSEL DE VIDEOS */
.videos-carrusel-section {
    width: 100%;
    margin: 25px 0;
    padding: 20px 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

.videos-carrusel-section h2 {
    text-align: center;
    color: #0c9baa;
    margin-bottom: 20px;
}

.videos-carrusel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.videos-carrusel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    align-items: center;
    flex: 1;
    padding: 10px 0;
}

.videos-carrusel::-webkit-scrollbar {
    height: 8px;
}

.videos-carrusel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.videos-carrusel::-webkit-scrollbar-thumb {
    background: #0c9baa;
    border-radius: 10px;
}

.video-item {
    width: 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: auto;
}


.video-item video {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.video-item-title {
    padding: 15px 8px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1.4;
    max-height: 4.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.carrusel-btn {
    background: #0c9baa;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.carrusel-btn:hover {
    background: #0a7a86;
}

.carrusel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.carrusel-btn-prev, .carrusel-btn-next {
    position: relative;
}

/* ============================================
   EMPRENDIMIENTOS
============================================ */
.emprendimientos-section {
    text-align: center;
    padding: 10px 10%;
    margin-top: 15px; 
}

.titulo-seccion {
    color: #1c2f47;
    font-size: 32px;
    margin-bottom: 15px;
}

/* Categorías */
.categorias-empr {
    background-color: #fcfdfd;
    text-align: center;
    padding: 15px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.categorias-empr a {
    color: rgb(12, 112, 123);
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
}

.categorias-empr a:hover {
    text-decoration: underline;
}

/* TARJETAS DE EMPRENDIMIENTOS */
.emprendimientos-section {
    position: relative;
}

.carrusel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.emprendimientos-carrusel {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.carrusel-item {
    display: inline-block;
    flex-shrink: 0;
}

.card-empr {
    width: 200px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card-empr:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tamaño más grande para tarjetas en la cuadrícula de emprendimientos */
.emprendimientos-grid .card-empr {
    width: 260px;
    padding: 20px;
}

.carrusel-btn {
    width: 45px;
    height: 45px;
    border: none;
    background-color: #0c9baa;
    color: white;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-btn:hover {
    background-color: #087988;
}

.carrusel-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.carrusel-indicadores {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.carrusel-indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.carrusel-indicador.activo {
    background-color: #0c9baa;
}

.img-placeholder {
    width: 100%;
    height: 160px;
    background: #0ca8b8;
    border-radius: 10px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Imagen más grande para tarjetas en la cuadrícula de emprendimientos */
.emprendimientos-grid .card-empr .img-placeholder {
    height: 190px;
}

.card-empr p {
    font-weight: bold;
    margin-bottom: 10px;
}

.card-empr button {
    background-color: #0c9baa;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.card-empr button:hover {
    background-color: #087988;
}

/* Cuadrícula de emprendimientos */
.emprendimientos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Botón centrado debajo de las tarjetas */
.center-btn {
    margin-top: 25px;
    text-align: center;
}

.center-btn button {
    background-color: #0c9baa;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
}

.center-btn button:hover {
    background-color: #087988;
}

/* ============================================
   ÚLTIMOS ANUNCIOS
============================================ */
.ultimos-anuncios {
    background-color: #0a3f5c;
    padding: 40px 10%;
    color: white;
    margin-top: 40px;
}

.ultimos-anuncios h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
    justify-items: center;
}

.anuncio-card {
    background: white;
    color: #1c2f47;
    border-radius: 10px;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    width: 560px;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anuncio-card img {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    object-fit: contain;
}

.anuncio-card button {
    background-color: #0c9baa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.anuncio-card button:hover {
    background-color: #087988;
}

/* SERVICIOS SECTION */
.servicios-section {
    text-align: center;
    padding: 30px 10%;
    margin-top: 30px;
    background-color: #f9f9f9;
}

.servicios-section h2 {
    color: #1c2f47;
    font-size: 32px;
    margin-bottom: 10px;
}

.servicios-descripcion {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.servicios-carrusel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    flex: 1;
    justify-content: center;
    align-items: center;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}

.servicios-carrusel::-webkit-scrollbar {
    height: 8px;
}

.servicios-carrusel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.servicios-carrusel::-webkit-scrollbar-thumb {
    background: #0c9baa;
    border-radius: 10px;
}

.card-servicio {
    width: 280px !important;
    background: #fff !important;
    padding: 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    min-height: 430px !important;
    border: 1px solid #f0f0f0 !important;
}

.card-servicio:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 24px rgba(10, 125, 135, 0.15) !important;
}

.servicio-img {
    height: 150px !important;
    width: 100% !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0a7d87 0%, #086d75 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.servicio-icono {
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.card-servicio:hover .servicio-icono {
    transform: scale(1.1) !important;
}

.card-servicio h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #0c2b2f !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
}

.card-servicio p {
    font-size: 14px !important;
    color: #555 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    width: 100% !important;
    flex-grow: 1 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
}

.btn-contactar-servicio {
    background: linear-gradient(135deg, #0a7d87 0%, #086d75 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(10, 125, 135, 0.25) !important;
    width: auto !important;
    align-self: center !important;
}

.btn-contactar-servicio:hover {
    background: linear-gradient(135deg, #086d75 0%, #064d58 100%) !important;
    box-shadow: 0 6px 16px rgba(10, 125, 135, 0.35) !important;
    transform: translateY(-2px) !important;
}

.btn-contactar-servicio:active {
    transform: translateY(0) !important;
}

.anuncio-card {
    background: white;
    color: #1c2f47;
    border-radius: 10px;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    width: 560px;
    padding: 15px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
    overflow-y: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anuncio-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    width: 100%;
}

.anuncio-card img {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: contain;
}

.anuncio-card p {
    font-size: 14px;
    margin-bottom: 12px;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.anuncio-card button {
    background: #0db87d;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.anuncio-card button:hover {
    background: #0a9967;
}

.center-btn-anuncios {
    text-align: center;
    margin-top: 30px;
}

.center-btn-anuncios button {
    background-color: white;
    color: #1c2f47;
    padding: 10px 25px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.center-btn-anuncios button:hover {
    background-color: #e2e2e2;
}

/* FOOTER */
footer {
    background-color: #0c9baa;
    padding: 8px 20px;
    color: white;
    text-align: center;
}

footer > div:nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 5px;
}

footer > div:nth-child(1) h3 {
    margin: 0;
    font-size: 0.85em;
}

footer > div:nth-child(1) p {
    margin: 0;
    display: none;
}

footer > div:nth-child(1) > div {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

footer > div:nth-child(n+2) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
    white-space: nowrap;
    font-size: 0.85em;
}

footer > div:last-child {
    display: block;
    width: 100%;
    margin-top: 3px;
}

footer h3 {
    font-size: 0.9em;
    margin: 0;
    font-weight: normal;
}

footer p {
    font-size: 0.85em;
    margin: 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2em;
}

footer a:hover {
    opacity: 0.8;
}

/* ============================================
   MEDIA QUERIES PARA RESPONSIVE
============================================ */

/* Pantallas de hasta 1024px */
@media (max-width: 1024px) {
    .historia {
        flex-direction: column;
        gap: 20px;
    }
    .contenido, .imagen {
        width: 100%;
    }

    .video-empr video {
        width: 90%;
        height: auto;
    }

    .emprendimientos-carrusel {
        gap: 20px;
    }

    .card-empr {
        width: 180px;
    }

    .anuncios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .anuncio-card {
        width: 100%;
        height: auto;
    }

    .servicios-carrusel {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-servicio {
        width: 90%;
    }

    footer {
        padding: 40px 5%;
        gap: 30px;
    }

    footer .footer-section {
        min-width: 45%;
    }
}

/* Pantallas de hasta 768px */
@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 28px;
    }

    .emprendimientos-carrusel {
        flex-direction: column;
        gap: 20px;
    }

    .card-empr {
        width: 100%;
    }

    .anuncios-grid {
        grid-template-columns: 1fr;
    }

    .anuncio-card {
        width: 90%;
        height: auto;
    }

    .servicios-carrusel {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-servicio {
        width: 90%;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }
}

/* Pantallas de hasta 480px */
@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 22px;
    }

    .banner-content button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .historia p {
        font-size: 14px;
    }

    .card-empr {
        width: 100%;
    }

    .anuncio-card {
        width: 100%;
    }

    .servicios-carrusel {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .card-servicio {
        width: 95%;
    }

    .servicios-section {
        padding: 30px 5%;
    }

    .servicios-section h2 {
        font-size: 24px;
    }

    .servicios-descripcion {
        font-size: 14px;
    }

    .categorias-empr a {
        display: block;
        margin: 5px 0;
    }
}
/* ============================================
   CONTACTO
============================================ */
.contacto-section {
    padding: 50px 10%;
    text-align: center;
}

.contacto-section h2 {
    font-size: 32px;
    color: #1c2f47;
    margin-bottom: 30px;
}

/* Grid para contacto */
.contacto-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

/* Línea divisoria vertical */
.contacto-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #ccc;
    transform: translateX(-50%);
}

/* Información de contacto */
.contacto-info {
    flex: 1;
    min-width: 250px;
    text-align: left;
    padding-right: 20px;
}

.contacto-info h3 {
    margin-bottom: 15px;
    color: #0c9baa;
}

.contacto-info p {
    margin-bottom: 10px;
}

/* Redes sociales */
.redes img {
    width: 40px;
    margin-right: 10px;
}

/* Mapa */
.contacto-mapa {
    flex: 1;
    min-width: 250px;
    padding-left: 20px;
}

.contacto-mapa img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .contacto-grid {
        flex-direction: column;
    }

    .contacto-grid::before {
        display: none; /* Oculta la línea en móviles */
    }

    .contacto-info, .contacto-mapa {
        width: 100%;
        padding: 0;
    }

    .contacto-mapa img {
        max-width: 350px;
    }

    .contacto-info {
        margin-bottom: 30px;
    }
    
    /* Estilos generales responsive */
    header img {
        max-width: 120px;
        height: auto;
    }
    
    nav {
        padding: 10px 5px;
        gap: 15px;
    }
    
    nav a {
        font-size: 13px;
    }
    
    nav a:last-child {
        right: 10px;
    }
    
    .banner img {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .historia {
        flex-direction: column;
    }
    
    .emprendimientos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }
    
    header img {
        max-width: 100px;
        height: auto;
    }
    
    nav {
        padding: 8px 5px;
        gap: 10px;
    }
    
    nav a {
        font-size: 11px;
    }
    
    nav a:last-child {
        right: 5px;
    }
    
    .banner {
        margin-bottom: 20px;
    }
    
    .banner img {
        height: 200px;
    }
    
    .banner-content {
        padding: 10px;
    }
    
    .banner-content h2 {
        font-size: 16px;
    }
    
    .banner-content button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .historia {
        flex-direction: column;
        padding: 15px;
    }
    
    .historia h2 {
        font-size: 18px;
    }
    
    .historia p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .historia button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .emprendimientos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .card-empr,
    .anuncio-card {
        padding: 10px;
    }
    
    .card-empr button,
    .anuncio-card button {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    footer {
        padding: 15px;
    }
    
    footer div {
        margin-bottom: 15px;
    }
    
    footer h3 {
        font-size: 14px;
    }
    
    footer p {
        font-size: 11px;
    }
}

/* ESTILOS PARA SELECT */
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:hover {
    border-color: #0c9baa;
}

select:focus {
    outline: none;
    border-color: #0c9baa;
    box-shadow: 0 0 8px rgba(12, 155, 170, 0.2);
}

select option {
    padding: 5px;
    color: #333;
    background: white;
}

/* ============================================
   CLASES PARA ADMIN
============================================ */

.logout-link {
    color: #ff6b6b !important;
}

.loading-row {
    text-align: center;
}

.admin-productos-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.admin-productos-title {
    margin-top: 0;
    color: #0c9baa;
}

.preview-producto {
    margin-top: 8px;
    text-align: center;
}

.btn-add-product {
    width: 100%;
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-add-product:hover {
    background-color: #218838;
}

.admin-productos-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-products {
    color: #999;
    text-align: center;
    padding: 10px;
}

/* ============================================
   CLASES PARA INDEX
============================================ */

.grid-loading-message {
    grid-column: 1/-1;
    text-align: center;
}

.modal-detalles-inicio {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-detalle-body {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #0c9baa;
    padding-bottom: 10px;
}

.modal-detalle-title {
    margin: 0;
    color: #0c9baa;
}

.modal-detalle-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-detalle-close:hover {
    color: #333;
}

.modal-detalle-content {
    padding: 20px;
    text-align: left;
}

.modal-detalle-productos {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.modal-detalle-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-whatsapp {
    background-color: #0c9baa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    min-width: 120px;
}

.btn-whatsapp:hover {
    background-color: #0a7a87;
}

.btn-close-modal {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
}

.btn-close-modal:hover {
    background-color: #e0e0e0;
}

/* ============================================
   ESTILOS PARA CUADRÍCULA DE PRODUCTOS
============================================ */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.producto-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.producto-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 32px;
}

.producto-card p {
    margin: 8px 0;
    font-size: 13px;
}

.producto-nombre {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.producto-categoria {
    font-size: 11px;
    color: #0c9baa;
    font-weight: bold;
    margin: 5px 0;
}

.producto-descripcion {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    line-height: 1.3;
}

.producto-precio {
    color: #0c9baa;
    font-weight: bold;
    font-size: 14px;
    margin-top: 8px;
}

/* Responsive para cuadrícula de productos */
@media (max-width: 1024px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============================================
   CLASES PARA REEMPLAZAR INLINE STYLES
============================================ */

/* Emprendimientos.html */
.loading-text {
    grid-column: 1/-1;
    text-align: center;
}

.detalle-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.btn-agregar-producto-style {
    width: 100%;
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.productos-list {
    max-height: 200px;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
}

.modal-padding {
    padding: 20px;
    text-align: left;
}

.detalle-productos {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    display: grid;
    grid-template-columns: 1fr;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-flex {
    flex: 1;
    min-width: 120px;
}

/* admin.html */
.video-preview {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Reemplazar min-height: auto con alternativas */
.section {
    min-height: unset;
}

/* Modal de Aviso Completo */
.modal-aviso-imagen {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    max-height: 300px;
    object-fit: cover;
}

.modal-aviso-contenido {
    line-height: 1.6;
    font-size: 16px;
}

.modal-aviso-hidden {
    display: none !important;
}

/* Estilos para avisos expandibles */
.aviso-texto-truncado {
    max-height: 60px;
    overflow: hidden;
    margin: 10px 0;
}

.aviso-contenido-completo {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

.aviso-contenido-completo p {
    margin: 0;
}

/* Clase para preservar formato de texto con saltos de línea */
.descripcion-formateada {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

.aviso-btn-toggle {
    transition: all 0.3s ease;
}

/* Media Queries para Footer */
@media (max-width: 1024px) {
    footer {
        padding: 40px 5%;
        gap: 30px;
    }

    footer .footer-section {
        min-width: 45%;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 30px 5%;
        gap: 20px;
    }

    footer .footer-section {
        width: 100%;
    }

    footer h3 {
        font-size: 1.05em;
    }

    footer p {
        font-size: 0.85em;
    }

    .footer-bottom {
        padding: 15px 5%;
        font-size: 0.8em;
    }
}