@import "bootstrap/dist/css/bootstrap.min.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --green-dark: #2a3d1f;
    --green-light: #8aa446;
    --white: #fff;
}

/* Estilos globales */
body {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-display: swap;
    margin: 0;
    color: #333;
}

/* Enlaces */
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

/* Estilos flexibles */
.flex-container {
    display: flex;
    height: 25px;
}

.flex-item-left,
.flex-item-right {
    padding-top: 5px;
    flex: 50%;
}

/* Estilos del texto de copyright */
.copyright {
    font-size: 14px;
}

/* Estilos para listas no ordenadas dentro de elementos de lista */
ul>li {
    list-style: none;
    font-weight: 600;
}

.custom-footer {
    font-size: 0.85rem;
    background-color: var(--green-dark);
    color: var(--white);
    padding-top: 1rem;
}

.custom-footer ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.custom-footer li {
    margin-bottom: 0.5rem;
}

.custom-footer a,
.custom-footer p {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--white);
    text-decoration: none;
}

.custom-footer a:hover {
    color: #f8f9fa;
}

.custom-footer .btn-outline-light {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-color: var(--white);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.custom-footer .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
}

.custom-footer hr {
    border-top: 1px solid #6c757d;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.custom-footer .logo-da {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.custom-footer .legal-links,
.custom-footer .contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-footer .other-links {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.custom-footer .legal-links li,
.custom-footer .contact-links li,
.custom-footer .other-links a {
    margin-bottom: 0.5rem;
}

.custom-footer .other-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 0 !important;
}

.custom-footer .other-links i {
    margin-right: 6px;
    font-size: 1rem;
}

.custom-footer .other-links img {
    margin-right: 6px;
    width: 18px;
    height: 18px;
}

.custom-footer h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.custom-footer .row-cols-md-3 .col {
    margin-bottom: 1rem;
}

.custom-footer .copyright {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Header */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--white);
    border-bottom: 2px solid #eee;
}

.logo img {
    width: 120px;
}

/* Estilos para el menú */
/* Estilos del navbar */
.navbar {
    padding: 1rem 0;
    /* Ajusta el espaciado vertical */
}

.navbar-brand img {
    max-height: 120px;
    /* Asegura que el logo no sea demasiado grande */
}

.navbar-nav .nav-link {
    font-size: 1.2rem;
    /* Tamaño de fuente base para los enlaces */
    margin: 0 15px;
    /* Espacio entre los enlaces */
    color: #333;
    /* Color del texto */
    transition: color 0.3s ease;
    /* Transición suave al pasar el ratón */
}

.navbar-nav .nav-link:hover {
    color: #007bff;
    /* Cambia el color al pasar el ratón */
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 1.1rem;
    color: #333;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-image {
    width: 100%;
    padding-top: 0.5rem;
    text-align: center;
    background-color: #fff;
}

.hero-image img {
    max-width: 95%;
    height: auto;
    display: inline-block;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    background-color: var(--green-dark);
    color: white;
}

.hero-left,
.hero-right {
    flex: 1;
    padding: 1rem;
}

.hero-left img {
    width: 100%;
    max-width: 300px;
}

/* Links Section */
.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem;
    background-color: var(--white);
    text-align: center;
}

/* Card */
.card {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    background-color: var(--green-dark); /* Color de fondo completo */
    color: var(--white); /* Color del texto */
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.card p {
    color: var(--white); /* Asegura que el texto esté en blanco */
    font-weight: 600;
    margin-top: 0.5rem;
}

.icon-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: transparent; /* Sin fondo, solo se ve el ícono */
    z-index: 1;
}


/* Footer */
footer {
    background: var(--green-dark);
    color: white;
    text-align: center;
    padding-top: 1rem;
}

footer a {
    color: white;
    margin: 0 5px;
    font-size: 1.2rem;
}

/* Daily Word Section */
.daily-word-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    background-color: var(--white);
    gap: 2rem;
}

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

.title {
    color: var(--green-dark);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--green-dark);
}

/* Download Button */
.download-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: var(--green-dark);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.download-button:hover {
    transform: translateY(-2px);
}

.circle-badge {
    position: absolute;
    right: -15px;
    background-color: var(--white);
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.right-block img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border: 3px solid;
    border-color: #2a3d1f;
    border-radius: 5px;
}

.carousel-item img {
    max-height: 480px;
    object-fit: cover;
    width: 96%;
}

.carousel-item .col-md-6 {
    padding: 0 10px;
    /* reduce espacio horizontal */
}

.month-badge {
    display: inline-block;
    background-color: #2a3d1f;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    border: 2px solid #8aa446;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Estilo para que la tabla responda correctamente */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    vertical-align: middle !important;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {

    .custom-footer .other-links {
        flex-direction: column !important;
        align-items: center;
    }

    .pdf-text {
        flex: 1 0 100%;
        max-width: 100%;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
    }

    .hero-image {
        padding-top: 0.1rem;
        background-color: #fff;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
        display: inline-block;
    }

    .left-block,
    .right-block {
        flex: 1 0 100%;
        max-width: 100%;
    }

    .right-block img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
    }

    .carousel-item .row {
        flex-direction: column;
    }

    .carousel-item .col-md-6 {
        max-width: 100%;
        padding: 10px 0;
    }

    .carousel-item img {
        max-height: 300px;
    }
}