:root {
    --primary-color: #c62828;
    --primary-dark: #8e1c1c;
    --secondary-color: purple;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background-color: white;
    box-shadow: 0 2px 8px rgb(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
}

.logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo.edukkacion img {
    height: 50px;
}

.logo a {
    display: inline-block;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.right-logo img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 17px;
    font-weight: 500;
    position: relative;
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.dropdown-content a{
    display: block;
    padding: 12px 15px;
    margin: 0;
    color: #333;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

main {
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color)
}

h3 {
    color: #333
}

.Inicio {
    background-image: url("../images/portada-main.jpeg");
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Inicio-overlay {
    background: linear-gradient(
        rgba(198, 40, 40, 0.85),
        rgba(198, 40, 40, 0.85)
    );
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;;
}

.Inicio-content {
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.Inicio-content h1{
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.Inicio-content p{
    font-size: 17px;
    margin-bottom: 30px;
}

.Sobre-section {
    padding: 80px 60px;
    background-color: #f8f9fb;
}

.Sobre-container {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.Sobre-text {
    flex: 1;
}

.Sobre-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.Sobre-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.Sobre-image {
    flex: 1;
    position: relative;
}

.Sobre-image img {
    width: 100%;
    border-radius: 8px;
}

.Sobre-claim {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
}

.btn-primary {
    box-shadow: 0 4px 15px var(--primary-dark);
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #e6e6e6;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.info-block {
    padding: 90px 60px;
    background-color: #f2f2f2;
}

.info-container {
    display: flex;
    align-items: center;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-container.reverse {
    flex-direction: row-reverse;
}

.info-image {
    flex: 1;
}

.info-image img {
    width: 100%;
    border-radius: 6px;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #000;
}

.underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px 0 28px 0;
}

.info-text p {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #444;
}

.info-block:nth-child(even) {
    background-color: #ffffff;
}

.btn-blue {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-blue:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


.fechas-table {
    max-width: 800px;
    margin: 0 auto;
}

.fechas-table-header, 
.fechas-table-row {
    text-align: center;
    display: grid;
    grid-template-columns: 120px 100px 1fr 1fr;
    align-items: center;
    padding: 18px 20px;
}

.fechas-table-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.fechas-table-row {
    transition: background-color 0.2s ease;
    padding: 16px 10px;
}

.fechas-table-row:hover {
    background-color: #e9eef4;
}

.fechas-table-row:nth-child(even) {
    background-color: #f0f3f7;
}

.fechas-table-row:last-child {
    border-radius: 0 0 8px 8px;
}

.fechas-table-container {
    display: flex;
    justify-content: center;
}

.fechas-level {
    font-weight: bold;
    color: var(--primary-color);
}

.fechas-table-row a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.fechas-table-row a:hover {
    text-decoration: underline;
}

.preparate-page {
    padding: 80px 60px;
    background-color: #f5f7fa;
}

.page-title {
    text-align: center;
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-intro {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
    line-height: 1.6;
    color: #444;
}

.preparate-table {
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto;
}

.preparate-table-header, 
.preparate-table-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 1fr 1fr 1fr;
    text-align: center;
}

.preparate-table-header > div,
.preparate-table-row > div {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 12px 10px;
}

.preparate-table-header > div:last-child,
.preparate-table-row > div:last-child {
    border-right: none;
}

.preparate-table-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.preparate-table-row:last-child > div {
    border-bottom: none;
}

.preparate-level {
    font-weight: bold;
    color: var(--primary-color);
}

.audio-links a {
    margin-right: 8px;
}

footer:not(.main-footer) {
    background-color: #f5f5f5;
}

.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: block;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

.footer-logo span {
    display: none;
    font-size: 16px;
    font-weight: 400;
    margin-top: 6px;
    opacity: 0.9;
}

.footer-brand {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-contact,
.footer-legal {
    flex: 1;
}

.footer-contact h3,
.footer-legal h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 16px;
    color: #ffffff;
}

.footer-legal a {
    display: block;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.2s ease;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.examen-detalles {
    padding: 80px 60px;
    background-color: #ffffff;
}

.examen-container {
    max-width: 1100px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #f5f7fa;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 26px 35px;
    font-size: 22px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.accordion-header:hover {
    color: var(--primary-color)
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 35px;
}

.accordion-content p {
    padding-bottom: 30px;
    line-height: 1.6;
    color: #444;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    overflow-y: auto;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.examen-hero {
    padding: 60px 60px;
    background-color: #f8f9fb;
}

.examen-hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 70px;
}

.examen-text {
    flex: 1;
}

.examen-text h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.examen-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.examen-image {
    flex: 0 0 380px;
}

.examen-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
}

.duracion-section {
    padding: 90px 60px;
    background-color: #f5f5f5;
}

.duracion-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.duracion-text {
    flex: 1;
}

.duracion-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.duracion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.duracion-table td {
    border: 1px solid #ccc;
    padding: 18px 20px;
    font-size: 16px;
}

.duracion-table tr:nth-child(even) {
    background-color: #fafafa;
}

.duracion-info {
    margin-top: 25px;
    line-height: 1.6;
    color: #444;
}

.duracion-image {
    flex: 0 0 450px;
}

.duracion-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.speaking-section {
    padding: 90px 60px;
    text-align: center;
}

.speaking-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.speaking-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

.video-card h3 {
    margin-top: 15px;
    font-size: 20px;
}

.legal-page {
    padding: 80px 60px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fdfdfd;
}

.legal-page h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.legal-item {
    margin-bottom: 35px;
}

.legal-item h3 {
    font-size: 20px;
    color: #e57373;
    margin-bottom: 12px;
}

.legal-item p {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.privacy-title {
    font-size: 24px; 
    color: var(--primary-color); 
    text-align: center;
    margin-bottom: 30px;
}

.privacy-title-black {
    font-size: 24px;
    color: #333333;
    text-align: center;
    margin-bottom: 30px;
}

.highlight-text p {
    font-size: 16px;
    color: var(--primary-color);
    text-align: center;
    margin: 20px 0;
    font-weight: normal;
}

.why-home {
    padding: 100px 60px;
    background-color: #f5f7fa;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.why-left {
    flex: 1;
}

.why-left h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.why-left p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #444;
}

.why-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.why-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.why-card p {
    color: #555;
    line-height: 1.6;
}

.testimonios-home {
    padding: 100px 60px;
    background-color: #ffffff;
}

.testimonios-title {
    text-align: center;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 70px;
}

.testimonios-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 70px;
    align-items: center;
}

.testimonios-image {
    flex: 1;
}

.testimonios-image img {
    width: 100%;
    border-radius: 30px;
}

.testimonios-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.testimonial {
    background-color: #f5f7fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.testimonial h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.testimonial p {
    line-height: 1.6;
    color: #444;
}

.centro-section {
    padding: 110px 60px;
    background-color: #ffffff;
}

.centro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.centro-image {
    flex: 1;
}

.centro-image img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.centro-text {
    flex: 1;
}

.centro-subtitle {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.centro-text h2 {
    font-size: 48px;
    margin-bottom: 25px;
    color: #000;
}

.centro-text p {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #444;
}

.centro-text .btn-secondary {
    margin-top: 20px;
}
