@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* Estilo general para el cuerpo */
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: #000000;
    background-color: #f7f7f7;
    overflow-x: hidden;
}

/* Estilo general para los títulos principales (h1, h2) */
h1, h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

/* Estilo general para los subtítulos (h3, h4) */
h3, h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* Estilo general para los párrafos y texto normal (p, span, li, etc.) */
p, span, li, a, label {
    font-weight: 500;
    font-size: 1rem;
}

/* Ajustes para el tamaño de los párrafos */
p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.pt-2{
    padding-top: 2%;
}

/* Ajustes para los enlaces */
a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

a:hover {
    color: #BA0C2F;
}

/* Estilo para listas */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Estilo para los iconos de contacto */
.icon-color {
    color: rgb(186, 12, 47);
    fill: rgb(186, 12, 47);
    height: 100px;
    width: auto;
}

/* Estilo para las filas de la columna de contacto */
.flex.items-end.h-36 {
    height: auto; /* Ajusta la altura según el contenido */
    margin-bottom: 1.5rem; /* Añade espacio entre las filas */
}

/* Estilo para la sección de contacto */
section#contact {
    padding: 2rem;
}

section#contact h3 {
    margin-bottom: 0.5rem;
    color: rgb(186, 12, 47) !important;
    text-align: center;
}

section#contact p {
    margin: 0;
    color: #333;
    text-align: left;
}

/* Fondo de la sección de contacto */
section#contact {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Capa semitransparente sobre la imagen de fondo */
section#contact .bg-white.opacity-70 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.7;
}

/* Estilo para los enlaces en la información de contacto */
section#contact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

section#contact a:hover {
    color: rgb(186, 12, 47);
}

/* Estilo para el iframe del mapa */
.flex.justify-center.items-center.h-full iframe {
    border: 2px solid rgb(186, 12, 47);
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

.flex.justify-center.items-center.h-full iframe:hover {
    transform: scale(1.05);
}

/* Navbar Inicial (Desktop) */
#navbar-initial {
    background-color: #f7f7f7;
    border-bottom: 2px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 20;
    display: none;
}

@media (min-width: 1024px) {
    #navbar-initial {
        display: flex;
    }
}

/* Sticky Navbar (Desktop) */
#navbar-sticky {
    position: fixed;
    top: 0;
    z-index: 30;
    background-color: #f7f7f7;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: none;
}

#navbar-sticky.visible {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 1024px) {
    #navbar-sticky {
        display: flex;
    }
}

/* Mobile Navbar */
#mobile-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

@media (min-width: 1024px) {
    #mobile-navbar {
        display: none;
    }
}

/* Estilo para los enlaces en las navbars */
a.underline-hover {
    color: #333;
    text-decoration: none;
    position: relative;
}

a.underline-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ba0c2f;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

a.underline-hover:hover::after {
    width: 100%;
}

/* Ajustes para pantallas grandes */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    p {
        font-size: 1.25rem;
        width: 100%;
    }

    section#contact .flex-wrap {
        flex-wrap: nowrap;
    }

    section#contact .md\:w-6\/12 {
        width: 50%;
    }

    section#contact .md\:w-1\/12 {
        width: 8.333333%;
    }

    section#contact .md\:w-5\/12 {
        width: 41.666667%;
    }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Cambia la disposición de flexbox a vertical y ajusta tamaños */
    .flex.items-end {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem; /* Añade espacio entre los elementos apilados */
    }

    .h-36 {
        height: auto;
    }

    .h-20 {
        height: 80px;
    }

    /* Ajuste de ancho para columnas en pantallas pequeñas */
    .col-33, .col-66 {
        width: 100%;
    }

    .text-left {
        text-align: center;
    }
}

/* Alineación de la lista desordenada (UL) en las barras de navegación */
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Eliminar margen inferior en la barra de navegación */
nav {
    margin-bottom: 0;
}

/* Estilo para enlaces especiales */
.special-links a {
    color: rgb(186, 12, 47);
}

.special-links a:hover {
    color: rgb(186, 12, 47);
}

/* FAQ CSS */ 

.faq-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1f2937;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px 20px;
}

.faq-item input {
  display: none;
}

.faq-item label {
  cursor: pointer;
  display: block;
  position: relative;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  padding-right: 30px;
  color: #111827;
}

.faq-item label::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: #2563eb;
  transition: transform 0.3s ease;
}

.faq-item input:checked + label::after {
  content: "–";
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item input:checked ~ .faq-content {
  max-height: 1000px;
}

.faq-content p {
  margin-top: 15px;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}


