/* DISEÑO CORRESPONDIENTE A LA PRIMERA RUTA */

body {
    background: url("/static/img/Screenshot_3.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    font-family: 'Playfair Display', sans-serif;
}

.img-landing {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-image: url("/static/img/Screenshot_4.png");
    background-size: cover;
    background-position: center;
    text-align: center;
}

.text-landing {
    text-align: center;         
    color: white;              
    font-size: 40px;           
    max-width: 80%;             
    margin: 0 auto;      
}

.table-info {
  margin: 20px auto;
  max-width: 1200px; 
  display: flex;
  justify-content: space-between;
}

.table-info section {
  flex: 1; 
  border: 1px solid #ccc; 
  border-radius: 8px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  margin: 0 10px; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  padding: 10px; 
  background-color: #fafafa; 
}

.info {
  text-align: center;
}

.text {
  font-size: 20px;
  line-height: 1.5;
  color: black
}

.title {
    text-align: center;
    color: black;
    font-family: 'Playfair Display', Arial, sans-serif;
    font-size: 50px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
    text-shadow: 0 0 8px white, 0 0 1px white, 0 0 1px white;
}

.description {
    text-align: center;
    color: black;
    font-family: 'Playfair Display', Arial, sans-serif;
    font-size: 30px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px #000000;
}

.link {
    text-decoration: none;
    text-align: center;
    font-family: 'Playfair Display', Arial, sans-serif;
    font-size: 30px;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black
}

.link:hover {
    background: blue;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
}

/* DISEÑO CORRESPONDIENTE A LA RUTA 'BLOG' */

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.link-blog {
    text-decoration: none;
    font-family: 'Playfair Display', Arial, sans-serif;
    font-size: 30px;
    color: black;
    margin: 100px;
}

.link-blog:hover {
    color: black;
    text-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
    transition: all 0.3s;
}

.error-message {
    margin: 10px 0;
    padding: 14px 20px;
    text-align: center;
    background: #ffeaea;
    color: #b71c1c;
    font-size: 1.1em;
    border-radius: 8px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(183,28,28,0.08);
    width: 100%;
    box-sizing: border-box;
    display: block;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.success-message {
    margin: 12px auto;
    padding: 18px 25px;
    text-align: center;
    background: #eaf6ff;
    color: #1e3c72;
    font-size: 1.2em;
    border-radius: 8px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(30,60,114,0.08);
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

/* diseño responsivo */

/* Móviles (max-width: 480px) */
@media (max-width: 480px) {
    body {
        background-attachment: scroll; /* Fondo fijo no recomendado en móviles */
        background-size: cover;
        min-height: auto;
        padding: 10px;
    }

    .img-landing {
        height: 180px;
        background-position: center center;
    }

    .text-landing {
        font-size: 22px;
        max-width: 95%;
        margin: 0 auto;
    }

    .table-info {
        flex-direction: column;
        margin: 15px auto;
        max-width: 100%;
    }

    .table-info section {
        margin: 10px 0;
        width: 100%;
        padding: 15px;
    }

    .title {
        font-size: 28px;
        margin-top: 12px;
        text-shadow: none;
    }

    .description {
        font-size: 18px;
        margin-top: 10px;
        text-shadow: none;
    }

    .link, .link-blog {
        font-size: 18px;
        margin: 10px 0;
        padding: 8px 16px;
    }

    .navbar ul {
        flex-direction: column;
        padding: 0;
    }

    .link-blog {
        margin: 15px 0;
    }

    .error-message, .success-message {
        font-size: 1em;
        padding: 12px 16px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .img-landing {
        height: 220px;
    }

    .text-landing {
        font-size: 30px;
        max-width: 90%;
    }

    .table-info {
        margin: 18px auto;
        max-width: 90%;
    }

    .title {
        font-size: 38px;
    }

    .description {
        font-size: 24px;
        margin-top: 15px;
    }

    .link, .link-blog {
        font-size: 24px;
        padding: 10px 18px;
    }

    .navbar ul {
        justify-content: center;
        padding: 0;
    }
}
