/* Variables y reset */
:root {
    --primary: #0056b3;
    --primary-light: #3a7fc5;
    --secondary: #ffcc00;
    --dark: #1a2a3a;
    --light: #f8f9fa;
    --gray: #e9ecef;
    --white: #ffffff;
    --orange:#ec8106ee;
    --orange-second:#e2550e;
    --font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos generales */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--orange);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--orange-second);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-secondary:hover {
    background-color: var(--dark);
    color: var(--white);
    border: 2px solid var(--dark);
}

.btn-meses {
    background-color: var(--orange);
    color: var(--white);
    
}
.btn-meses:hover {
    background-color: var(--light);
    color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-examen {
    background-color: var(--orange);
    color: var(--white);
}
.btn-examen:hover {
    background-color: var(--light);
    color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.contenedor-boton {
    display: flex;
    justify-content: center;
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background-color: var(--orange);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light)
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image:  url('../img/banner2026.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-top: 0;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontalmente */
    justify-content: center; /* centra verticalmente si es necesario */
    text-align: center; /* centra el texto */
    max-width: 950px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    line-height: 1;
    
}

.hero h1 span {
    color: var(--secondary);
    justify-content: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    justify-content: center;
    opacity: 0.9;
    
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Modalidades */
.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.modalidad-card {
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
     margin-left: 1rem;
     margin-right: 1rem;
}

.modalidad-card:hover {
    transform: translateY(-01px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
    height: 590px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modalidad-card:hover .card-image img {
    transform: scale(1.04);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.card-content h4{
    color: var(--light);
}

.card-content ul {
    list-style: none;
}

.card-content ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--light);
}

.card-content ul li img {
    margin-right: 0.5rem;
    width: 16px;
}

/* Valores */
.valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.valor-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-icon {
    width: 70px;
    height: 70px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.valor-item h3 {
    margin-bottom: 1rem;
    color: var(--orange);
}


/* Titulación */
.titulacion-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide.active {
    display: block;
}

.slide h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-controls button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--primary-light);
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Contacto */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contacto-info h2 {
    margin-bottom: 1.5rem;
}

.contacto-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.contacto-form .form-group {
    margin-bottom: 1.5rem;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-family: var(--font);
}

.contacto-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange-second);
}

.legal-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.legal-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.2rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

#btnScrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: none;
    background-color: var(--orange-second);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease-in-out;
}

#btnScrollTop:hover {
    background-color: var(--orange);
}

.map-container {
    position: relative;
    padding-bottom: 47%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 90%;
  }
  
  .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Estilos para los botones de los valores */
.btn-valor-modal {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.btn-valor-modal:hover {
    background-color: var(--orange-second);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para los modals de valores */
.modal-valor-maquiavelo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-valor-maquiavelo.show {
    display: flex;
    opacity: 1;
}

.modal-valor-content {
    background-color: white;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.valor-item p {
    text-align: justify;
}

.modal-valor-header {
    background-color: var(--orange);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-valor-header i {
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
}

.modal-valor-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-valor-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.modal-valor-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify !important;
}

.modal-valor-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-valor-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-valor-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-valor-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Scroll personalizado */
.modal-valor-body::-webkit-scrollbar {
    width: 8px;
}

.modal-valor-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-valor-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-valor-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-valor-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .modal-valor-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-valor-body {
        padding: 20px 15px;
    }
}

@media (max-width: 414px) {
    .card-image {
    height: 300px;
    overflow: hidden;
}
}
