/* CSS Styles */
body {
  font-family: Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}
nav {
    background: linear-gradient(90deg, #0056b3, #007bff);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    animation: slideDown 0.8s ease-in-out;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    position: relative;
    transition: transform 0.2s ease, background 0.3s ease;
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff9500;
    transition: width 0.3s ease;
}
nav ul li a:hover::after {
    width: 100%;
}
nav ul li a:hover {
    background: linear-gradient(90deg, #003d80, #0056b3);
    transform: scale(1.1);
}
.nav-toggle {
    display: none;
    font-size: 1.5em;
    background: #e6f0fa;
    border: none;
    color: #007bff;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 20px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}
.nav-toggle.active {
    transform: rotate(90deg);
}
header {
    /*background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f');*/
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}
header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
header h1, header p {
    position: relative;
    z-index: 1;
}
header h1 {
    font-size: 2.5em;
    margin: 0;
}
header p {
    font-size: 1.2em;
    margin-top: 10px;
}
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.benefits {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
}
.benefits h2 {
    color: #007bff;
    text-align: center;
    font-size: 2em;
    animation: fadeIn 1s ease-in-out;
}
.benefits ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.benefits li {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 25px;
    border: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.8s ease-in-out forwards;
    opacity: 0;
}
.benefits li:nth-child(1) { animation-delay: 0.2s; }
.benefits li:nth-child(2) { animation-delay: 0.4s; }
.benefits li:nth-child(3) { animation-delay: 0.6s; }
.benefits li:nth-child(4) { animation-delay: 0.8s; }
.benefits li:nth-child(5) { animation-delay: 1s; }
.benefits li:nth-child(6) { animation-delay: 1.2s; }
.benefits li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.benefits img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.benefits strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
    color: #007bff;
}
.benefits .closing-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.benefits .closing-column {
    padding: 15px;
    background-color: #e6f0fa;
    border-radius: 8px;
    text-align: left;
    font-weight: bold;
    color: #007bff;
    font-size: 1.2em;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
}
.benefits .closing-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.benefits .closing-column:nth-child(1) { animation-delay: 1.4s; }
.benefits .closing-column:nth-child(2) { animation-delay: 1.6s; }
.benefits .closing-column img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.target-audience {
    background-image: url('https://images.unsplash.com/photo-1516321310768-61f5faff6b87');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 40px;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}
.target-audience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}
.target-audience h2, .target-audience p, .target-audience ul {
    position: relative;
    z-index: 1;
}
.target-audience h2 {
    color: #ffffff;
    text-align: center;
    font-size: 2em;
    animation: fadeIn 1s ease-in-out;
}
.target-audience p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-in-out;
}
.target-audience ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.target-audience li {
    font-size: 1.1em;
    margin: 10px 0;
    animation: slideUp 0.8s ease-in-out forwards;
    opacity: 0;
}
.target-audience li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    margin-right: 10px;
}
.target-audience li:nth-child(1) { animation-delay: 0.2s; }
.target-audience li:nth-child(2) { animation-delay: 0.4s; }
.target-audience li:nth-child(3) { animation-delay: 0.6s; }
.target-audience li:nth-child(4) { animation-delay: 0.8s; }
.target-audience li:nth-child(5) { animation-delay: 1.0s; }
.target-audience li:nth-child(6) { animation-delay: 1.2s; }
.target-audience li:nth-child(7) { animation-delay: 1.4s; }
.target-audience li:nth-child(8) { animation-delay: 1.6s; }
.costs {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 40px;
    animation: fadeIn 1s ease-in-out;
}
.costs h2 {
    color: #007bff;
    text-align: center;
    font-size: 2em;
    animation: fadeIn 1s ease-in-out;
}
.costs p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-in-out;
}
.costs ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.costs li {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 25px;
    border: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.8s ease-in-out forwards;
    opacity: 0;
}
.costs li:nth-child(1) { animation-delay: 0.2s; }
.costs li:nth-child(2) { animation-delay: 0.4s; }
.costs li:nth-child(3) { animation-delay: 0.6s; }
.costs li:nth-child(4) { animation-delay: 0.8s; }
.costs li:nth-child(5) { animation-delay: 1.0s; }
.costs li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.costs strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
    color: #007bff;
}
.costs p.subtitle {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.about-medsuite {
    /*background-color: #002041;*/
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../Img/fondo_login_2022.jpg');
    /*background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), url('../Img/fondo_login_2022.jpg');*/
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    /*padding: 30px;*/
    padding: 80px 20px;
    margin-top: 40px;
    color: white;
    animation: fadeIn 1s ease-in-out;
    display: grid;
    /*grid-template-columns: 1fr 2fr;*/
    gap: 20px;
    align-items: center;
}
.about-medsuite h2 {
    color: #ffffff;
    font-size: 2.2em;
    text-align: center;
}
.about-medsuite p {
    color: #ffffff;
    font-size: 1.2em;
    text-align: justify;
}
.success-case {
    background-color: #007bff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 40px;
    color: white;
    animation: fadeIn 1s ease-in-out;
    display: grid;
    /*grid-template-columns: 1fr 2fr;*/
    gap: 20px;
    align-items: center;
}
.success-case h2 {
    font-size: 2em;
    text-align: center;
    grid-column: 1 / -1;
}
.success-case ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(700px, 2fr));
    gap: 20px;
}
.success-case li {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 25px;
    border: 2px solid #355473;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.50);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.8s ease-in-out forwards;
    opacity: 0;
}
.success-case p {
    color: #007bff;
    font-size: 1em;
    text-align: justify;
}
.success-case img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.8s ease-in-out;
}
.success-case .content {
    font-size: 1.1em;
    color: #00336a;
    line-height: 1.6;
}
.form-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 40px;
    animation: fadeIn 1s ease-in-out;
}
.form-section h2 {
    color: #007bff;
    text-align: center;
    font-size: 2em;
}
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}
label {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}
.required-text {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1em;
}
input, select, textarea {
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #007bff;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: #ff9500;
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.3);
    outline: none;
}
button {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 12px 20px;
    background: linear-gradient(90deg, #0056b3, #007bff);
    border: none;
    border-radius: 8px;
    position: relative;
    transition: transform 0.2s ease, background 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
    visibility: visible;
}
button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff9500;
    transition: width 0.3s ease;
}
button:hover::after {
    width: 100%;
}
button:hover {
    background: linear-gradient(90deg, #003d80, #0056b3);
    transform: scale(1.1);
}
.mensaje {
    margin-top: 20px;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: 1px solid #0056b3;
    border-radius: 6px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.contact-section {
    background-color: #007bff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 40px;
    color: white;
    animation: fadeIn 1s ease-in-out;
}
.contact-section h2 {
    color: white;
    font-size: 2em;
    text-align: left;
}
.contact-section img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-in-out;
}
.contact-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}
.contact-section li {
    margin: 15px 0;
    font-size: 1.1em;
    animation: slideUp 0.8s ease-in-out forwards;
    opacity: 0;
}
.contact-section li:nth-child(1) { animation-delay: 0.2s; }
.contact-section li:nth-child(2) { animation-delay: 0.4s; }
.contact-section li:nth-child(3) { animation-delay: 0.6s; }
.contact-section li:nth-child(4) { animation-delay: 0.8s; }
.contact-section li:nth-child(5) { animation-delay: 1s; }
.contact-section i {
    color: #ff9500;
    margin-right: 10px;
}
.contact-section a {
    color: #ff9500;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
.contact-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}
.contact-section a:hover {
    color: #ffffff;
}
.contact-section a:hover::after {
    width: 100%;
}
/* Pantallas pequeñas (móviles) */
@media (max-width: 600px) {
    .logo {
        max-width: 150px; /* Tamaño más pequeño para móviles */
    }
}
  
/* Pantallas medianas (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
    .logo {
        max-width: 180px;
    }
}
  
/* Pantallas grandes (escritorio) */
@media (min-width: 1025px) {
    .logo_home {
        max-width: 200px;
        border-radius: 15px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    }
}
/* Pantallas pequeñas (móviles) */
@media (max-width: 600px) {
    .logo_home {
        max-width: 150px; /* Tamaño más pequeño para móviles */
        border-radius: 15px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);        
    }
}
  
/* Pantallas medianas (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
    .logo_home {
        max-width: 180px;
        border-radius: 15px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);        
    }
}
  
/* Pantallas grandes (escritorio) */
@media (min-width: 1025px) {
    .logo {
        max-width: 200px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #e6f0fa;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transform: translateY(-10px);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }
    nav ul.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    nav ul li a {
        display: block;
        padding: 10px;
    }
    .nav-toggle {
        display: block;
    }
    header h1 {
        font-size: 1.8em;
    }
    header p {
        font-size: 1em;
    }
    .benefits ul {
        grid-template-columns: 1fr;
    }
    .benefits .closing-columns {
        grid-template-columns: 1fr;
    }
    .benefits .closing-column {
        font-size: 1em;
        padding: 10px;
    }
    .costs ul {
        grid-template-columns: 1fr;
    }
    .costs li {
        font-size: 1em;
        padding: 20px;
    }
    .target-audience h2 {
        font-size: 1.8em;
    }
    .target-audience p, .target-audience li {
        font-size: 1em;
    }
    .costs h2 {
        font-size: 1.8em;
    }
    .costs p {
        font-size: 1em;
    }
    .success-case {
        grid-template-columns: 1fr;
    }
    .success-case img, .contact-section img {
        max-width: 100%;
    }
    .contact-section li {
        font-size: 1em;
    }
}
.centrado {
    text-align: center;
}