/* Estilos generales */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
  overflow-x: hidden;
  background-color: #f0f0f0;
}

body {
  background: url('/static/images/fondo.png') no-repeat center center fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 80px;
}



/* Estilo del Header */
.header {
  background-color: #004aad;
  padding: 15px 0;
  position: fixed;
  top: 10px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 100%; 
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 5px; 
}

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

.header .logo img {
  max-width: 30%; 
  height: auto; 
  display: block; 
  margin: 0; 
}

.header .logo img:hover {
  transform: scale(1.3);
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  animation: none; 
}

.navmenu .dropdown i {
  display: none;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Estilo del Menú de Navegación */
.navmenu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu li {
  position: relative;
}

.navmenu a {
  font-size: 16px;
  font-family: var(--nav-font);
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.navmenu a:hover,
.navmenu .active {
  background-color: white;
  color: #004aad;
}

/* Dropdown Submenu */
.navmenu .dropdown > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  list-style: none;
  z-index: 10;
}

.navmenu .dropdown:hover > ul {
  display: block;
}

.navmenu .dropdown ul li {
  padding: 5px;
}

.navmenu .dropdown ul a {
  font-size: 14px;
  padding: 10px 20px;
  color: var(--default-color);
  white-space: nowrap;
}

.navmenu .dropdown ul a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Dropdown de Nivel Profundo */
.navmenu .dropdown .dropdown ul {
  left: 100%;
  top: 0;
  display: none;
}

.navmenu .dropdown .dropdown:hover > ul {
  display: block;
}

/* Responsive para móviles (menos de 768px) */
@media (max-width: 767px) {
  .header {
    width: 100%; /* Ajustar el ancho */
    padding: 8px 0;
  }

  .header .logo img {
    max-width: 50px; /* Reducir aún más el logo */
  }

  .navmenu {
    flex-direction: column; /* Poner el menú en columna */
    gap: 10px;
  }

  .navmenu a {
    font-size: 12px; /* Reducir texto */
    padding: 6px 10px;
  }
}

/* Responsive para tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .header {
    width: 100%;
  }

  .header .logo img {
    max-width: 60px;
  }

  .navmenu a {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* Responsive para PC portátiles (más de 1024px) */
@media (min-width: 1025px) {
  .header {
    width: 100%;
  }

  .header .logo img {
    max-width: 100px;
  }

  .navmenu a {
    font-size: 16px;
  }
}


/* Sección Portafolio */
#portafolio h1, #portafolio h2, #portafolio h3 {
  text-align: center;
  color: #2c3e50;
}

#portafolio h3 {
  font-size: 1.2rem;
  color: #0056b3;
  margin-top: 3px;
  padding: 5px 0;
  background-color: #e0e0e0;
  border-radius: 5px;
}

.tables-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

#proponentesTable-container, #resultadosTable-container {
  width: 48%;
}

#proponentesTable-container h3, #resultadosTable-container h3 {
  font-size: 0.8rem;
  color: #000;
  margin: 10px auto;
  padding: 5px 0;
  background-color: #e0e0e0;
  border-radius: 5px;
}

/* Estilo de las tablas */
#proponentesTable, #resultadosTable {
  width: 90%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 1rem; /* Tamaño de texto por defecto */
}

#proponentesTable thead th, #resultadosTable thead th {
  background-color: rgba(0, 0, 0, .5);
  color: #fff;
  padding: 10px;
  text-align: center;
}

#proponentesTable tbody td, #resultadosTable tbody td {
  padding: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
  color: #000;
}

/* Para el primer td de la tabla #proponentesTable (15% del tamaño) */
#proponentesTable tbody td:first-child {
  word-wrap: break-word;
  white-space: normal;
  font-weight: 700;
  width: 15%; /* 15% del ancho total */
  text-align: center;
}

/* Para el primer td de la tabla #resultadosTable (70% del tamaño) */
#resultadosTable tbody td:first-child {
  word-wrap: break-word;
  white-space: normal;
  width: 70%; /* 70% del ancho total */
  text-align: left;
}

/* Para la segunda columna de la tabla #proponentesTable (55% del tamaño) */
#proponentesTable tbody td:nth-child(2) {
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  width: 55%; /* 55% del ancho total */
}

/* Para la segunda columna de la tabla #resultadosTable (30% del tamaño) */
#resultadosTable tbody td:nth-child(2) {
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  font-weight: 700;
  width: 30%; /* 30% del ancho total */
  text-align: center;
}

/* Para la tercera columna de la tabla #proponentesTable (30% del tamaño) */
#proponentesTable tbody td:nth-child(3) {
  text-align: right;
  word-wrap: break-word;
  white-space: normal;
  font-weight: 700;
  width: 30%; /* 30% del ancho total */
}

/* Responsivo para pantallas pequeñas (móviles) */
@media screen and (max-width: 767px) {
  .tables-container {
    flex-direction: column; /* Las tablas se apilan una debajo de la otra */
    align-items: center;
  }

  #proponentesTable-container, #resultadosTable-container {
    width: 90%; /* Ancho del contenedor de las tablas */
    margin-bottom: 20px;
  }

  /* Reducir el tamaño de las tablas y el texto */
  #proponentesTable, #resultadosTable {
    font-size: 0.8rem; /* Reducir tamaño del texto */
  }

  #proponentesTable tbody td, #resultadosTable tbody td {
    padding: 8px; /* Reducir el padding de las celdas */
  }

  /* Ajuste de columnas para pantallas móviles */
  #proponentesTable tbody td:first-child,
  #resultadosTable tbody td:first-child {
    width: 100%; /* La primera columna ocupa todo el ancho */
  }

  #proponentesTable tbody td:nth-child(2),
  #resultadosTable tbody td:nth-child(2) {
    width: 100%; /* La segunda columna ocupa todo el ancho */
  }

  #proponentesTable tbody td:nth-child(3) {
    width: 100%; /* La tercera columna ocupa todo el ancho */
  }
}

/* Responsivo para pantallas medianas (tabletas, dispositivos pequeños) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .tables-container {
    flex-direction: column; /* Las tablas se apilan una debajo de la otra */
    align-items: center;
  }

  #proponentesTable-container, #resultadosTable-container {
    width: 90%;
    margin-bottom: 20px;
  }

  /* Reducir el tamaño de las tablas y el texto */
  #proponentesTable, #resultadosTable {
    font-size: 0.9rem; /* Reducir tamaño del texto */
  }

  #proponentesTable tbody td, #resultadosTable tbody td {
    padding: 9px; /* Reducir el padding de las celdas */
  }

  /* Ajuste de columnas para pantallas medianas */
  #proponentesTable tbody td:first-child,
  #resultadosTable tbody td:first-child {
    width: 100%; /* La primera columna ocupa todo el ancho */
  }

  #proponentesTable tbody td:nth-child(2),
  #resultadosTable tbody td:nth-child(2) {
    width: 100%; /* La segunda columna ocupa todo el ancho */
  }

  #proponentesTable tbody td:nth-child(3) {
    width: 100%; /* La tercera columna ocupa todo el ancho */
  }
}

/* Responsivo para pantallas grandes (escritorio o dispositivos más grandes) */
@media screen and (min-width: 1025px) {
  /* Mantener el diseño original */
  #proponentesTable tbody td:first-child {
    width: 15%; /* 15% del ancho total */
  }

  #proponentesTable tbody td:nth-child(2) {
    width: 55%; /* 55% del ancho total */
  }

  #proponentesTable tbody td:nth-child(3) {
    width: 30%; /* 30% del ancho total */
  }

  #resultadosTable tbody td:first-child {
    width: 70%; /* 70% del ancho total */
  }

  #resultadosTable tbody td:nth-child(2) {
    width: 30%; /* 30% del ancho total */
  }
}



/* Botones */

.boton-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.boton-container button {
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.8rem; /* Tamaño de fuente por defecto */
}

.boton-container button:hover {
  background-color: #3e444a;
}

.formula {
  font-weight: normal; /* Esto quita la negrita */
  font-size: 1em;      /* Opcional: para igualar el tamaño de fuente del párrafo */
}


/* Responsivo para pantallas pequeñas (móviles) */
@media screen and (max-width: 767px) {
  .boton-container {
    flex-direction: column; /* Los botones se apilan uno debajo de otro */
    gap: 10px; /* Mantener el espacio entre botones */
  }

  .boton-container button {
    width: 100%; /* Los botones ocupan todo el ancho disponible */
    padding: 12px 20px; /* Aumentar el padding para mayor comodidad */
    font-size: 0.9rem; /* Reducir tamaño de fuente en pantallas pequeñas */
  }
}

/* Responsivo para pantallas medianas (tabletas y dispositivos pequeños) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .boton-container {
    flex-direction: row; /* Los botones están en una fila */
    justify-content: space-around; /* Los botones se distribuyen por igual */
    gap: 20px; /* Aumentar el espacio entre botones */
  }

  .boton-container button {
    width: auto; /* Los botones toman su tamaño natural */
    padding: 12px 25px; /* Ajustar padding */
    font-size: 1rem; /* Tamaño de fuente normal */
  }
}



.accordion {
  width: 90%;
  margin: 30px auto;
  margin-bottom: 70px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
  width: 100%;
  padding: 5px;
  background-color: #788596;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
  color: #fff;
  margin: 0;
}

.accordion-header:hover {
  background-color: #3e444a;
}

.accordion-icon {
  font-size: 20px;
  transition: transform .3s ease;
  color: #fff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #f4f4f4;
  transition: max-height .3s ease;
}

.accordion-content p {
  margin: 10px 0;
  line-height: 1.6;
  color: #000;
  font-size: 14px;
  text-align: justify;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

@media screen and (max-width:768px) {
  .accordion {
    width: 90%;
  }
  
  .accordion-header {
    font-size: 13px;
    padding: 10px;
  }

  .accordion-icon {
    font-size: 18px;
  }

  .accordion-content p {
    font-size: 13px;
  }
}

@media screen and (max-width:480px) {
  .accordion-header {
    font-size: 12px;
    padding: 8px;
  }

  .accordion-icon {
    font-size: 16px;
  }

  .accordion-content p {
    font-size: 12px;
  }
}





/*--------------------------------------------------------------
# Grupo de Whatsapp
--------------------------------------------------------------*/
.whatsapp-contact-section {
  background-color: #004aad;
  padding: 20px 0;
  margin: 40px 0;
  color: #fff;
  position: relative;
}

.whatsapp-contact-section .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* separa en 3 zonas */
  align-items: center; /* centra vertical */
  position: relative;
}

.whatsapp-contact-section .whatsapp-icon {
  width: 160px;
  height: 160px;
  position: absolute; /* para sacarlo del flujo */
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.whatsapp-contact-section .text-content {
  flex: 1;
  text-align: center;
}

.whatsapp-contact-section .text-content h3 {
  margin: 0 0 5px 0;
  font-weight: 700;
  font-size: 1.8rem;
}

.whatsapp-contact-section .text-content p {
  margin: 0;
  font-size: 1.1rem;
}

.whatsapp-contact-section .btn-whatsapp {
  background-color: #fff;
  color: #000;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* evitar que el texto del botón se rompa */
}

.whatsapp-contact-section .btn-whatsapp:hover {
  background-color: #1ebe57;
}

.whatsapp-contact-section .icon-btn-whatsapp {
  width: 24px;
  height: 24px;
}

/* Estilos base para desktop ya definidos */

/* Tablets (pantallas entre 768px y 1024px) */
@media (max-width: 1024px) {
  .whatsapp-contact-section .container {
    flex-wrap: wrap; /* permite que los elementos se acomoden en varias filas */
    justify-content: center; /* centra los elementos */
    padding-left: 0; /* quitar padding que da espacio al ícono absoluto */
  }

  .whatsapp-contact-section .whatsapp-icon {
    position: relative; /* ya no absoluto para que no se desborde */
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    left: auto;
    top: auto;
    transform: none;
  }

  .whatsapp-contact-section .text-content {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .whatsapp-contact-section .btn-whatsapp {
    flex-basis: 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* Móviles (pantallas hasta 767px) */
@media (max-width: 767px) {
  .whatsapp-contact-section {
    padding: 15px 10px;
    margin: 20px 0;
  }

  .whatsapp-contact-section .container {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .whatsapp-contact-section .whatsapp-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .whatsapp-contact-section .text-content {
    flex-basis: auto;
    text-align: center;
    margin-bottom: 10px;
  }

  .whatsapp-contact-section .btn-whatsapp {
    width: 90%;
    justify-content: center;
    padding: 12px;
  }
}



/* Estilos para el footer */
.footer-container {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    color: #000;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.footer-wave-svg {
    background-color: transparent;
    display: block;
    height: 200px;
    position: relative;
    top: -1px;
    width: 100%;
}
.footer-wave-path {
    fill: rgba(0, 74, 173);
}

.footer-info {
    text-align: center;
    color: #000;
    position: relative; /* Necesario para que el fondo de olas quede detrás */
    width: 100%;
    top: -80px;
}


.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    top: -150px;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: #555;
    color: #1da1f2;
    transform: scale(1.1) translateY(-6px);
}


#install-button {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#install-button:hover {
    transform: scale(1.1);
}

#install-button:active {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    #install-button {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
}

