/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
/* Fin fuentes */

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

body {
    font-family: Arial, sans-serif;
}

/* Hero Section */
.hero {
    background-color: #f0f4f8;
    color: rgb(0, 0, 0);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #e59e0c;
}

.hero ul {
    padding-left: 1rem;
}

.hero .comprar-btn {
    padding: 1rem;
    background-color: #4CAF50;
    border-radius: 1rem;
    border-style: none;
    color: #ffffff;
}

.hero .comprar-btn:hover {
    background-color: #34c23b;
}

.hero a {
    text-decoration: none;
}

.hero .grid-catalogo div {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Catalogo Section */
.catalogo {
    background-color: #2e2d2d;
    color: rgb(255, 255, 255);
}

.catalogo h2 {
    color: #ff5722;
    text-align: center;
}

/* Grid Configuration */
.grid-container {
    display: grid;
    grid-template-areas:
        "header"
        "navbar"
        "main"
        "footer";
    grid-template-rows: 300px 60px auto 100px;
    min-height: 100vh;
}

/* Grid Areas */
.header {
    grid-area: header;
    background: #4caf50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header h1 {
    margin: 3rem;
}

.navbar {
    grid-area: navbar;
    background: #673AB7;
    color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    transition: height 0.3s ease-in-out;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.navbar ul.active {
    display: flex;
}

.navbar ul.active + .navbar {
    height: auto;
}

.navbar ul li a {
    color: #d3aaff;
    text-decoration: none;
    font-weight: bold;
}

.navbar ul li a:hover {
    color: #ff8949;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Main and Footer */
.main {
    grid-area: main;
}

.main h1, h2, h3, h4, h5, h6 {
    line-height: 1.6;
    font-family: 'Merriweather', serif;
}

.main p, li {
    line-height: 1.6;
    font-family: 'Open Sans';
    margin-bottom: 1rem;
}

.main section {
    padding: 1rem;
}

.main .collage {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hero .grid-catalogo article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Adjust this value as needed */
}

.hero .grid-catalogo .comprar-btn {
    align-self: center;
    margin-top: auto;
}

.footer {
    grid-area: footer;
    background: #673AB7;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Form Styles */
#contacto {
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem auto;
}

#contacto h2 {
    text-align: center;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.icon-img {
    display: block;
    margin: 0 auto 1rem;
    width: 50px;
    height: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

form input, form textarea, form select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus, form select:focus {
    border-color: #4CAF50;
    outline: none;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #45a049;
}

form .success-message, form .error-message {
    text-align: center;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    display: none;
}

/* Custom Select */
.custom-select-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-select-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    /* background: #fff url('public/Assets/Imgs/Icons/arrow-down.svg') no-repeat right 10px center; */
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.custom-select-container select:focus {
    border-color: #4CAF50;
    outline: none;
}

.custom-select-container select:hover {
    border-color: #45a049;
}

.custom-select-container select:invalid {
    color: #888;
}

.custom-select-container option {
    color: #333;
    font-size: 1rem;
    padding: 10px;
}

/* FAQ Section */
.faq {
    width: 100%;
    background-color: #f7f7f7;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.faq-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.faq summary {
    padding: 1rem;
    text-align: left;
}

.faq ul {
    list-style: none;
    text-align: left;
    margin: 1rem;
}

details {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

details summary {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    outline: none;
}

details p, .faq ul {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.5;
    text-align: left;
    padding: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 1rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1200px;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-article {
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-article h2 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

#flujo-compra ol {
    list-style: decimal inside;
    color: #555;
    padding: 0;
    margin: 0;
}

#flujo-compra li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Telegram Section */
.telegram-books {
    background-color: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.telegram-books h2 {
    color: #2e2d2d;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.telegram-books p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.book-list {
    list-style-type: none;
    padding: 0;
    margin: auto;
    width: 80%;
}

.book-list li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
}

.book-list li::before {
    margin-right: 0.5rem;
}

.telegram-link {
    display: inline-block;
    background-color: #3a96dd;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.telegram-link:hover {
    background-color: #309ef3;
}

.telegram-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
    #contacto {
        padding: 1rem;
        margin: 1rem;
    }

    form {
        padding: 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-article {
        padding: 1rem;
    }

    .faq h2 {
        font-size: 1.8rem;
    }

    details summary {
        font-size: 1.1rem;
    }

    .grid-container {
        grid-template-areas:
            "header"
            "navbar"
            "main"
            "footer";
        grid-template-rows: 250px auto auto 120px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
        margin-top: 1rem;
    }

    .navbar ul.active {
        display: flex;
        flex-direction: column;
    }

    .navbar {
        height: auto;
    }
}

@media (min-width: 768px) {
    .main section {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .grid-container {
        grid-template-rows: 300px 60px auto 100px;
    }
}

@media (min-width: 1600px) {
    .grid-container {
        grid-template-rows: 350px 70px auto 120px;
    }
}