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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-text);
    line-height: 1.6;
}

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

  
/* =========================
    HEADER
========================= */

.contador-visitas {
    width: 100%;
    background: #1e3a56; /* el mismo color del header */
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.contador-visitas .icono-ojo {
    font-size: 20px;
}




.header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================
    CONTENEDOR CONTACTOS
========================= */

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.header-contacts::-webkit-scrollbar {
    display: none;
}

.header-contacts { scrollbar-width: none; }

/* =========================
    SOCIAL CARD BASE
========================= */

.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff15;
    padding: 12px 18px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid #ffffff30;
    flex-shrink: 0;
    cursor: pointer;
    transition: .2s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.social-card .icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.social-card .info strong {
    color: white;
    font-size: 16px;
}


/* =========================
    WHATSAPP
========================= */

#whatsapp-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

#whatsapp-contacts::-webkit-scrollbar { display: none; }

.whatsapp-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e2ffe9;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.whatsapp-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #075e54;
}

.whatsapp-group-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.contact-link {
    background: #c7ffd9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #075e54;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================
    TELEGRAM
========================= */

#telegram-contact {
    display: flex;
    align-items: center;
}

#telegram-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2f0ff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================
    DESKTOP (PANTALLAS GRANDES)
========================= */

@media (min-width: 769px) {

    .header-contacts {
        flex-wrap: nowrap;
    }

    #telegram-contact .social-card {
        width: 230px;
        min-width: 230px;
        max-width: 230px;
    }

    #whatsapp-card {
        display: flex;
        width: auto !important;
        min-width: 230px;
        max-width: max-content;
    }

    #whatsapp-contacts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-right: 5px;
    }

    .whatsapp-group-list {
        flex-wrap: nowrap;
    }

    .whatsapp-group {
        white-space: nowrap;
    }

    .contact-link {
        white-space: nowrap;
    }
}

/* =========================
    TABLET
========================= */

@media (min-width: 481px) and (max-width: 768px) {

    #telegram-contact .social-card {
        width: 200px;
        min-width: 200px;
    }

    #whatsapp-card {
        width: auto;
        min-width: 200px;
    }

    #whatsapp-contacts {
        flex-wrap: nowrap;
    }
}

/* =========================
    MÓVIL
========================= */

@media (max-width: 480px) {

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-contacts {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }

    .social-card {
        width: 100%;
        max-width: 100%;
    }

    #whatsapp-contacts {
        flex-wrap: wrap;
        justify-content: center;
    }

    .whatsapp-group-list {
        flex-wrap: wrap;
    }

    #telegram-contact a {
        white-space: normal;
    }
}

/* =========================
    WHATSAPP CANAL
========================= */

#whatsapp-channel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2ffe9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #075e54;
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-channel-card .icon img {
    width: 30px;
    height: 30px;
}

@media (min-width: 769px) {
    .whatsapp-channel-card {
        width: 230px;
        min-width: 230px;
        max-width: 230px;
    }
}

  


/* En celulares */
@media (max-width: 600px) {
    .logo-img {
        width: 48px;
        height: 48px;
    }
}

.header-contacts {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.social-card {
    display: flex;
    align-items: center;
    background: #ffffff15;
    padding: 10px 18px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid #ffffff30;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    margin-right: 12px;
}

.info strong {
    font-size: 16px;
    color: #fff;
}

.contacts-list a,
#telegram-contact a {
    display: inline-block;
    color: white;
    font-size: 14px;
    text-decoration: none;
    margin-right: 10px;
}

.contacts-list a:hover,
#telegram-contact a:hover {
    text-decoration: underline;
}




.header-logo h1 {
    font-size: 28px;
    font-weight: bold;
}

.header-contacts {
    display: flex;
    gap: 30px;
}

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

.contacts-list {
    display: flex;
    gap: 15px;
}

.contacts-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.contacts-list a:hover {
    color: var(--accent-color);
}

#telegram-contact a {
    color: var(--secondary-color);
    text-decoration: none;
}

.admin-btn {
    display: flex;
    gap: 10px;
}

.btn-admin {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-admin:hover {
    background-color: #c0392b;
}


.banner-carousel {
    margin: 20px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.carousel-track {
    flex: 1;
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    max-height: 300px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--accent-color);
}

/* Noticias */
.noticias-section {
    margin: 40px 0;
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.noticias-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.noticias-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#noticias-track {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    scroll-behavior: smooth;
}

.noticia-card {
    min-width: 300px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.noticia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.noticia-card h3 {
    padding: 15px;
    font-size: 16px;
    color: var(--dark-text);
}


.servicios-section {
    margin: 40px 0;
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.servicios-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.servicios-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#servicios-track {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    scroll-behavior: smooth;
}

.servicios-card {
    min-width: 300px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.servicios-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.servicios-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.servicios-card h3 {
    padding: 15px;
    font-size: 16px;
    color: var(--dark-text);
}

.servicios-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.carousel-window {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.servicio-item {
    min-width: 320px;
    max-width: 320px;
    padding: 20px;
    margin: 0 10px;
    background: #f4f4f4;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: transform .2s;
}

.servicio-item:hover {
    transform: scale(1.02);
}

.servicio-item h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

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

.servicio-item {
    background: #f4f4f4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform .2s;
    cursor: pointer;
}

.servicio-item:hover {
    transform: scale(1.02);
}

.servicio-item h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.servicio-item img,
.servicio-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* GRID */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.servicio-item {
    background: #f4f4f4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform .2s;
    cursor: pointer;
}

.servicio-item:hover {
    transform: scale(1.02);
}

.servicio-item h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.servicio-item img,
.servicio-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Fondo */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 0;
}

/* Caja del modal */
.modal-content {
    background: #fff;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 8px;
    right: 16px;
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
    z-index: 1001;
}

/* Contenedor interno */
#modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 15px;
}

/* Imagen y video 100% responsivos */
#modal-body img,
#modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

/* Ajuste especial para móviles */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 10px;
    }

    #modal-body img,
    #modal-body video {
        max-height: 70vh;
    }
}




.footer {
    background: linear-gradient(135deg, #1a2533, #111a24);
    padding: 25px 10px;
    text-align: center;
    color: #e8ecf2;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

.footer-content p {
    font-size: 15px;
    margin: 0;
    font-weight: 300;
    line-height: 1.6;
}

.footer-content strong a {
    color: #4da3ff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.footer-content strong a:hover {
    text-shadow: 0 0 6px rgba(77,163,255,0.8);
}

.tagline {
    font-style: italic;
    color: #9bb7d1;
    margin-left: 4px;
}

.phone {
    margin-left: 10px;
    color: #61c1ff;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.phone:hover {
    text-shadow: 0 0 6px rgba(97,193,255,0.8);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    filter: invert(68%) sepia(95%) saturate(502%) hue-rotate(89deg) brightness(95%) contrast(92%);
    transition: 0.3s;
}

.phone:hover .whatsapp-icon {
    filter: brightness(1.4);
}

@media(max-width: 480px) {
    .footer-content p {
        font-size: 14px;
        padding: 0 10px;
    }

    .phone {
        display: block;
        margin-top: 6px;
        justify-content: center;
    }
}




.media {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.media img,
.media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}


.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img,
.modal-content video {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}


.close {
    color: #fff;
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    cursor: pointer;
}


/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === AGENDA SECTION MODERNA === */
.agenda-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.agenda-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* === INPUTS MODERNOS === */
.filter-group {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.filter-group input {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
    font-size: 14px;

    border: 1px solid #dcdcdc;
    border-radius: 8px;

    outline: none;
    transition: 0.3s ease;
    background: #fafafa;
}

.filter-group input:focus {
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 6px rgba(52,152,219,0.3);
}

/* === BOTÓN === */
#filter-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s ease;
}

#filter-btn:hover {
    background: #217dbb;
}

/* === TABLA ESTÉTICA === */
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    overflow: hidden;
    border-radius: 12px;
}

.agenda-table thead {
    background: #f1f5f9;
}

.agenda-table th {
    padding: 14px;
    font-weight: 700;
    color: #444;
    border-bottom: 2px solid #e5e7eb;
}

.agenda-table td {
    padding: 14px;
    color: #333;
    border-bottom: 1px solid #ececec;
}

/* Filas alternadas */
.agenda-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Hover bonito */
.agenda-table tbody tr:hover {
    background: #eef6ff;
    transition: 0.2s;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .filter-group input {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .agenda-section {
        padding: 20px;
    }

    /* La tabla se vuelve desplazable */
    .agenda-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



.facebook-widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 750px;
    position: sticky;
    top: 20px;
    overflow-y: auto;
}

.fb-page {
    width: 100%;
    height: auto;
}

.facebook-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-text);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-contacts {
        flex-direction: column;
        gap: 15px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .facebook-widget {
        position: relative;
        top: auto;
        height: auto;
    }

    .noticias-carousel {
        overflow-x: auto;
        padding: 0 10px;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-input {
        width: 100%;
    }

    .agenda-table {
        font-size: 12px;
    }

    .agenda-table th,
    .agenda-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .header-logo h1 {
        font-size: 20px;
    }

    .noticias-section h2,
    .agenda-section h2 {
        font-size: 20px;
    }

    .noticia-card {
        min-width: 250px;
    }

    .carousel-slide {
        max-height: 200px;
    }
}

/* Responsive */
@media (max-width: 700px) {
    .header-contacts {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }

    .social-card {
        width: 100%;
        justify-content: center;
    }
}
