/* Variables de colores y fuentes */
:root {
    --primary-color: black;
}

/* Reset básico y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

a {
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}

.modal {
  overflow: none;
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  overflow: none;
  background-color: #ffffff;
  margin: 20vh auto;
  width: 90%;
  max-width: 450px;
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-icon {
  margin-bottom: 20px;
}

.modal-icon i {
  font-size: 38px;
  color: #3498db;
  filter: drop-shadow(0 4px 6px rgba(52, 152, 219, 0.2));
}

.modal-text h2 {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.modal-text p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.contact-info {
  margin-bottom: 25px;
  font-size: 14px;
  color: #777;
}

.contact-info a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #2980b9;
}

.separator {
  margin: 0 8px;
  color: #ddd;
}

#modal-close-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

#modal-close-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#modal-close-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 25px 20px;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
  }
  
  .separator {
    display: none;
  }
  
  .contact-info a:first-child {
    margin-bottom: 5px;
  }
}

/* Navbar moderno */
#navbar {
    position: fixed;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: black;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ffc700;
    border-radius: 50%;
    bottom: 5px;
    right: -8px;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links li a {
    color: #212529;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffc700;
    left: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

.navbar-links li a:hover::after,
.navbar-links li a.active::after {
    width: 100%;
}

.navbar-links li a.active {
    color: black;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #212529;
}

/* Header moderno */
.header-bg {
    background: linear-gradient(135deg, #fc5252 0%, #b8a500 100%);
    color: white;
    padding: 12rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgxMzUpIj48cmVjdCBpZD0icGF0dGVybi1iYWNrZ3JvdW5kIiB3aWR0aD0iNDAwJSIgaGVpZ2h0PSI0MDAlIiBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDMpIj48L3JlY3Q+PHBhdGggZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA1KSIgZD0iTTAgMTAgTDEwIDAgTDIwIDEwIEwxMCAyMCB6Ij48L3BhdGg+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIj48L3JlY3Q+PC9zdmc+');
    opacity: 0.4;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.header-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.exam-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #f9cf37;
    color: black;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.exam-button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    background-color: #bc8817;
}

/* Estilos de secciones */
section {
    padding: 5rem 2rem;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ffc700 , #ff8000);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Quiénes Somos */
#about-us {
    background-color: #f5f7fa;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-container img {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);;
    object-fit: cover;
}

.about-btn {
    flex: 1;
}

.about-btn p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-btn a {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: #ffc700;
    color: black;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-btn a:hover {
    background-color:#bc8817;
    color: white;
}

/* Estilos para la sección exams-who */
#exams-who {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

#exams-who h2 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}


.advantages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.advantage-card i {
    color: #ffc700;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.advantage-card:hover i {
    transform: scale(1.2);
}

.advantage-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.advantage-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .advantages-container {
        gap: 20px;
    }
    
    .advantage-card {
        width: calc(50% - 20px);
        padding: 20px 15px;
    }
    
    .advantage-card h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .advantage-card {
        width: 100%;
    }
    
    #exams-who {
        padding: 60px 15px;
    }
    
    #exams-who h2 {
        font-size: 2rem;
    }
}

#exams{
    background-color: white;
}

/* Exámenes disponibles */
.exams-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.exam-card {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exam-card:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.exam-card i {
    color: #ffc700;
    margin-bottom: 1.5rem;
}

.exam-card h3 {
    margin-bottom: 1rem;
}

.exam-card p {
    margin-bottom: 2rem;
}

/* Blog */
#blog {
    background-color: #f5f7fa;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.blog-card-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.center-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    background-color: #ffc700;
    color: black;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #bc8817;
    color: white;
}

.social-share {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: black;
    color: white;
}

.sub-btn-blog {
    text-align: center;
    margin-top: 3rem;
}

.btns {
    padding: 0.8rem 1.8rem;
    background-color: #ffc700;
    color: black;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btns:hover {
    background-color: #bc8817;
    color: white;
}

/* FAQ */
#faq {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);;
    transition: all 0.3s ease;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: black;
}

/* Suscripción */
#subscribe {
    background: linear-gradient(135deg, #ffc700 0%, #855c04 100%);
    text-align: center;
    color: white;
    padding: 5rem 2rem;
}

#subscribe h2 {
    color: white;
}

#subscribe form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

#subscribe input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

#subscribe button {
    padding: 0.8rem 1.5rem;
    background-color: #ffc700;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#subscribe button:hover {
    background-color: #d49a1b;
    color: white;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 4rem 2rem 2rem;
}

.container-footer {
    max-width: 1200px;
    margin: 0 auto;
}

.row-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: #ffc700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: black;
    transform: scale(1.1);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-container img {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 5px;
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar-links {
        position: fixed;
        top: 70px;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        z-index: 1000;
        transition: 0.3s ease;
    }
    
    .navbar-links.active {
        right: 0;
    }
    
    .navbar-links li {
        width: 100%;
    }
    
    .navbar-links li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .header-content h1 {
        font-size: 2.2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
    
    #subscribe form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .exam-button {
        padding: 0.8rem 1.5rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .exam-card {
        padding: 1.5rem;
    }
}