/* Estilos generales */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* Cabecera */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px;
    /*background-image: url('/static/img/franja.jpg');*/
    background-color: rgba(17, 32, 18, 0.511);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.logo-content {
    width: 8%;
    min-width: 100px;
}
.logo-image {
    height: 110px;
    width: auto;
    max-width: 100%;
    animation: girar 15s linear infinite;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.empresa-info {
    width: 25%;
    min-width: 280px;
    color: white;
    text-align: center;
    margin: 5px 5px 5px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empresa-nombre {
    font-size: 160%;
    padding-bottom: 10px;
}
.empresa-slogan {
    font-size: 18px;
}
.convert {
    flex-grow: 2;
    display: flex;
    flex-direction: row;
    /*
    justify-content: center;
    align-items: center; 
*/
}
/*----------------------------------------------------------*/
/*              Menu de opciones de la web                  */
/*              Estilos generales del menú                  */
/*----------------------------------------------------------*/
.menu-banner {    /* Aqui otorga el espacio "flex-grow-1 para los botones y 2 para login & up */
    flex-grow: 2;
    display: flex;
    justify-content: center;
    align-items: center; 
}
.menu {
    flex-grow: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 25px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 10px 17px;
    margin: 0 4px;
    background-color: rgb(123, 122, 122, 0.2);
    border-radius: 1px;
    border-bottom: solid 0.05em rgba(244,234,254,0.3);
    border-right: solid 0.05em rgba(244,234,254,0.3);
    text-decoration: none;
    color: white;
    transition: background-color 0.3s;
    text-wrap: nowrap;
}

.menu-link:hover {
    background-image: url('/static/img/button.jpg');
    background-size:contain;
    border-top: solid 0.05em rgba(19, 19, 20, 0.6);
    border-left: solid 0.05em rgba(19,19,20,0.6);
    border-bottom: none;
    border-right: none;

    color: rgba(119, 120, 121, 0.1); /* El porcentaje bajo 0.1, hace que desaparezca el texto en el botón */
    background-size: 100%;
    padding-left: 0px;
    padding-right: 30px;
    margin: 0 5px;
}

/*----------------------------------*/
/*             User Action          */
/*----------------------------------*/
.user-actions {
    position: fixed;
    display: flex;
    gap: 10px;
    padding: 10px;
    top: 8px;
    width: 98px;
    right: 30px;

}
.user-login, img {
    width: 35px;
    height: 45px;
}
.user-up, img{
    width: 35px;
    height: 45px;
    /*margin-left: 0px;*/
}

/* Menú desplegable para usuario autenticado */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.user-dropdown-toggle:hover {
    background-color: rgba(156, 59, 143, 0.1);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown-item.logout {
    color: #dc3545;
    border-top: 1px solid #eee;
}

.user-dropdown-item.logout:hover {
    background-color: #fff5f5;
}

.dropdown-arrow {
    font-size: 15px;
    margin-left: 2px;
    transition: transform 0.3s;
    color: #28f61a;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}
/*--------------------------------------------------*/
/* Botón de menú-tipo-sandwich (oculto por defecto) */
/*--------------------------------------------------*/

.menu-toggle {
    background-color: khaki;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 20px;
    max-width: 40px;
    padding: 3px 5px;
    position: fixed;
    top: 85px;
    right: 10px;
    z-index: 1000;
}
/*-------------------------------------------------------------------------------------------*/
/* Estilos del logo, empresa, menu y user, para pantallas Medianas (1080), efecto responsive */
/*-------------------------------------------------------------------------------------------*/
@media screen and (max-width: 1080px) {
    .convert {
        flex-grow: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;    
    }
    .empresa-info {
        width: 90%;
        height: 40px;
        padding: 0 0 15px 0;
    }

    .empresa-nombre {
        font-size: 140%;
        padding: 0 10px;
    }
    .empresa-slogan {
        font-size: 14px;
    }
    .menu {
        margin: 0 10px;
    }
}
/*-------------------------------------------------------------------------------------------*/
/* Estilos del logo, empresa, menu y user, para pantallas Pequeñas (768),  efecto responsive */
/*-------------------------------------------------------------------------------------------*/
@media screen and (max-width: 768px) {

    .empresa-info {
        width: 80%;
        margin: 0 15px;
        padding: 10px;
    }
    .menu-toggle {
        display: block; /* Muestra el botón de menú */
    }

    .vmenu-container {
        position: fixed;
        top: 120px;
        left: -100%; /* Oculta el menú fuera de la pantalla */
        width: 70%;
        height: 100%;
        background-color: rgba(22, 44, 22, 0.8);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    .vmenu-container.active {
        left: 0; /* Muestra el menú */
    }

    .menu {
        flex-grow: 5;
        display: flex;
        justify-content:start;
        align-items:start;
        margin: 0 1px;
        flex-direction: column;
        margin-top: 5px; /* Espacio vertical para el botón de menú */
        /*background-color: brown;*/
        width: 220px;
        font-size: 18px;
    }

    .menu-link {
        margin-top: 5px 0 0 5% ;
        width: 80%;
        min-height: 40px;
    }
    .user-actions {
        position:absolute;
        top: 220px;
        left: 4%;
        display: flex;
        gap: 10px;
        padding: 20px 30px;
        border-inline-start-width: 120px;
        margin-right: 15px;
    }
    
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/*----------------------------------*/
/*             Slideshow            */
/*----------------------------------*/
/* Hero imágenes */
.slideshow {
    position: relative;
    width: 100%;
    margin-top: 120px;       /* por el header fijo */
    aspect-ratio: 16/9;
    background-color: rgba(131, 88, 88, 0.25);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.4);
    color: white;
}

.slide-title {
    display: inline-block;
    background-color: rgba(79, 79, 96, 0.1);
    padding: 4px 8px;
    margin-bottom: 8px;
}

.slide-text {
    display: inline-block;
    background-color: rgba(102, 39, 74, 0.2);
    padding: 4px 8px;
    margin: 0;
}
/* --------------------------------- */
/*              Hero videos          */
/* --------------------------------- */
.videos-section {
    position: relative;
    width: 100%;
    margin-top: 120px;
    /*background-color: transparent; /* Color que envuelve al video */
    overflow: hidden;
}

.hero-section .hero-inner {
    width: 100%;
    aspect-ratio: 16/9;   /* altura automática en función del ancho */
    position: relative;
}

.videos-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.video-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* llena todo el 16:9 */
    display: block;
    background: #000;
}

.video-slide-overlay {

    position: absolute;
    inset: 0;
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.4);
    color: white;

}
.video-slide-title {
    display: inline-block;
    background-color: rgba(79, 79, 96, 0.1);
    padding: 10px 8px;
    margin-bottom: 8px;
    font-size:xx-large;
}
.slide-text {
    display: inline-block;
    background-color: rgba(39, 39, 102, 0.3);
    padding: 4px 8px;
    margin: 0;
}
/* Posicionar los botones sobre el video */
.videos-prev-btn,
.videos-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 3px;
    border-bottom: solid 0.05em rgba(244,234,254,0.3);
    border-right: solid 0.05em rgba(244,234,254,0.3);

}

.videos-prev-btn { left: 20px; }
.videos-next-btn { right: 20px; }

/*-------------------*/
/* Articles */
/*-------------------*/
.articles-container {
    background-color: rgba(22, 17, 48, 0.5);
    position: relative;
    max-width: 100%;
    min-height: auto;
    margin: 0 auto;
    /*margin-bottom: 150px;        /* espacio para el footer fijo (130px + margen) */
    overflow: hidden;
    padding: 20px 20px 50px 20px;
  }
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background-color: beige;
    border-radius: 5px;
    overflow: hidden;
}

.article-image {
    border-radius: 2px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    width: 98%;
    height: 240px;
    margin: auto;
    margin-top: 5px;
    object-fit: cover;
}

.article-title {
    font-size: 18px;
    padding: 5px;
    text-align: center;
    color: rgb(91, 50, 214);
}

.article-text {
    font-size: 14px;
    text-align: justify;
    padding: 0 20px 5px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/*----------------------------------------*/
/*              Testimonios               */
/*----------------------------------------*/
.testimonials-container {
    background-color: rgb(255, 165, 0, 0.5);
    position: relative;
    max-width: 100%;
    min-height: 180px;
    margin: 0 auto;
    margin-bottom: 1px;        /* espacio entre el fin de pagina y el footer */
    overflow: hidden;
    padding: 20px 20px 50px 20px;
  }
  
  .testimonials-grid {
    display: flex;
    transition: transform 0.3s ease;
  }
  
  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
    min-height: 160px;
    background-color: beige;
    border-radius: 10px;
    margin-right: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .testimonial-text {
    margin-bottom: 60px;
  }
  
  .testimonial-image {
    width: 90px;
    height: 95px;
    border-radius: 50%;
    border: 2px solid cornsilk;
    object-fit: cover;
    position: absolute;
    bottom: -47.5px;        /* valor original  */ 
    bottom: -20px;
    left: 20%;
    transform: translateX(-50%);
  }  
  
  .testimonial-name,
  .testimonial-activity {
    text-align: center;
    margin: 5px 0;
  }

 
/* Posicionar los botones para testimonios */
  .prev-btn,
  .next-btn {
    position: absolute;
    top: 95%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(205, 144, 31, 0.1);
    font-size: 20px;
    border: none;
    width: 40px;
    height: 35px;
    cursor: pointer;
}

  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  
  @media (min-width: 768px) {
    .testimonial-card {
      flex: 0 0 calc(50% - 10px);
      max-width: calc(50% - 10px);
    }
  }
  
  @media (min-width: 1024px) {
    .testimonial-card {
      flex: 0 0 calc(33.333% - 13.333px);
      max-width: calc(33.333% - 13.333px);
    }
  }

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/*-------------------------------*/
/*   Botones flotantes sociales  */
/*-------------------------------*/
/* Barra fija lateral derecha */
.floating-actions {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1100;
}

.fa-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

/* Colores por botón */
.fa-fb   { background: #1877f2; }
.fa-tt   { background: #000000; }
.fa-ig   { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fa-appt { background: #28a745; }
.fa-test { background: #ff9800; }

/* Modal básico (puedes reutilizar estilos de otros modals que ya tienes) */
#testimonial-modal {
    display: none; /* se controla por JS */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
}
#testimonial-modal .modal-content {
    background: #fff;
    max-width: 420px;
    margin: 80px auto;
    padding: 20px;
    border-radius: 6px;
}

#testimonial-modal .close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}
/*Esto me sugirio AI, Para lo de Appointment en home.html*/

.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 400px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.slot-btn {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  padding: 6px;
}
/*--------------------------------------------------*/
/* Panel superior de filtros en calendario de citas */
/*--------------------------------------------------*/
.appointments-calendar-section {
  margin-top: 130px;        /* despegar del header fijo */
  padding: 20px;
}

.appointments-calendar-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Bloque: tipo de cliente + búsqueda */
#clienteTipoWrapper {
  margin: 5px 5px 10px;
  padding: 1px 2px;
  background: rgba(126, 130, 151, 0.05);
  border-radius: 6px;
  border: 1px solid #ddd;
  display: inline-block;
}

#clienteTipoWrapper labelssssss {
  font-size: 14px;
}

#clienteExistenteTop {
  margin-top: 6px;
}

#telefono_existente_top {
  padding: 4px 8px;
  font-size: 14px;
  width: 150px;
}

#btnBuscarCliente {
  padding: 4px 10px;
  font-size: 13px;
  margin-left: 4px;
  cursor: pointer;
}

#clienteDatosResumen {
  margin-top: 4px;
  font-size: 13px;
  color: #333;
}
.form_row
    {
    display: flex;
    width: 99%;
    /*margin: 2px auto;*/
    }
.clienteTitle {
    display: flex; /* Activa el modelo Flexbox */
    justify-content: space-between; /* Separa los elementos al extremo */
    width: 100%; /* Asegura que ocupe todo el ancho */    
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 5px;
}

/* Modal para nuevo cliente (reutiliza .modal y .modal-content) */
#clienteNuevoModal .modal-content {
  width: 420px;
  max-width: 95%;
}

#clienteNuevoForm label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
/*
#clienteNuevoForm input,
#appointmentMemo textarea {
*/
#appointmentMemo textarea {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  box-sizing: border-box;
  line-height: 1.5em; /* Altura de cada línea */
  height: calc(3 * 1.5em + 10px); /* 3 filas + algo de padding */
  resize: vertical; /* Permite cambiar el tamaño solo verticalmente */
}


#btnConfirmarClienteNuevo {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}


/*-----------------------------------*/
/*          Pie de página            */
/*-----------------------------------*/

.footers-container {
    background-color: rgba(14, 14, 15, 0.8);
    position: relative;
    max-width: 100%;
    min-height: auto;
    margin: 0 auto;
    margin-bottom: 1px;        /* espacio para el footer fijo (130px + margen) */
    overflow: hidden;
    padding: 5px 20px 10px 20px;
    box-sizing: border-box;
  }
  
  .footers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 20px;
}
  
  .footer-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(14, 15, 1, 0.3);
    border-radius: 5px;
    overflow: hidden;
}
/*
.footer-image {

}
*/
 .footer-title {
    font-size: 22px;
    padding-top: 3px;
    text-align: center;
    color: rgb(255, 252, 255);

} 
.footer-icon {
    font-size: 18px;
    background-color: inherit;
    text-decoration: none;
    box-sizing: border-box;

    border-radius: 3px;
    border-bottom: solid 0.05em rgba(244,234,254,0.3);
    border-right: solid 0.05em rgba(244,234,254,0.3);
}
a.footer-icon:visited {
    color: inherit;
}


.footer-text {
    font-size: 14px;
    text-align: justify;
    padding: 0 20px 5px;
    color:#fbfbfa;
    list-style-type: none;
}
@media (min-width: 768px) {
    .footers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}