@tailwind base;
@tailwind components;
@tailwind utilities;
/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    background-color: #0056b3;
    color: white;
    padding: 15px 20px; /* Ajusta el padding para que sea consistente */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px; /* Asegúrate de que todos los textos del header tengan el mismo tamaño */
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
}

.header .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.header .logo a {
    text-decoration: none;
    color: white;
}

.header .nav {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.header .nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .nav a:hover {
    color: #ffcc00;
}

/* Actions */
.header .actions {
    display: flex;
    gap: 10px;
}

.header .btn-secondary {
    background-color: #ffcc00;
    color: #0056b3;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.header .btn-secondary:hover {
    background-color: #fff;
    color: #0056b3;
    transform: scale(1.05);
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none; /* Oculto en desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

.nav-mobile {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    background: #0056b3;
    position: absolute;
    top: 60px; /* Debajo del header */
    right: 0;
    left: 0;
    padding: 15px 30px;
    gap: 15px;
    z-index: 1000;
}

.nav-mobile a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile a:last-child {
    border-bottom: none; /* Elimina el borde del último elemento */
}

.nav-mobile a:hover {
    color: #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none !important; /* Oculta la navegación de escritorio */
    }

    .menu-toggle {
        display: block; /* Visible en móvil */
    }

    .nav-mobile.active {
        display: flex; /* Muestra el menú al activar */
    }

    .header {
        flex-wrap: nowrap; /* Evita que los elementos se desplacen hacia abajo */
    }
}


/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #0056b3, #007bff);
    color: white;
    padding: 60px 20px;
    border-radius: 0 0 30px 30px;
    flex-wrap: wrap; /* Permite adaptarse a dispositivos pequeños */
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 50%;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.btn-primary {
    background: #ffcc00;
    color: #0056b3;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.1);
    background: #ffffff;
}

/* About Section */
.about {
    padding: 50px 0;
    background-color: #ffffff;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 45%;
    text-align: left;
}

.about-image {
    flex: 1 1 45%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Features Section */
.features {
    padding: 50px 0;
    text-align: center;
    background: #f1f1f1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.feature-card {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature-card img {
    max-width: 80px;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #0056b3;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px 10px 0 0;
}

.footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about-grid {
        flex-direction: column; /* Apila los elementos verticalmente */
        text-align: center;
    }

    .about-text,
    .about-image {
        flex: 1 1 100%;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajusta tarjetas para pantallas pequeñas */
    }
}


/* Call-to-Action Section */
.call-to-action {
    background: linear-gradient(135deg, #e8f3ff, #f8fbff); /* Degradado suave */
    padding: 60px 20px;
    text-align: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.call-to-action .container {
    max-width: 800px;
    margin: auto;
}

.cta-subtitle {
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.cta-title {
    color: #004080;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cta-description {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.3);
}

/* Decorative Elements */
.call-to-action::before,
.call-to-action::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    z-index: -1;
}

.call-to-action::before {
    width: 150px;
    height: 150px;
    top: -50px;
    left: -50px;
}

.call-to-action::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
    }
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
}

.feature-card img {
    width: 80px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0056b3;
    font-weight: bold;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #0056b3;
}

.feature-card:hover h3 {
    color: #003580;
}
.profile-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
    color: #333;
}

.profile-info, .medical-record, .no-medical-record {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-info h2, .medical-record h2 {
    font-size: 1.5rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.profile-info p, .medical-record p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}
