/* main-nav1. Global Reset & Retro Fonts */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: #222;
    background-color: #f4f1ea; /* "Paper" color */
}

/* 2. Layout Containers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Top Header (White) */
.logo-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.logo-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 120px;
    width: auto;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flag {
    width: 25px;
    opacity: 0.6;
    transition: 0.2s;
}

.flag.active {
    width: 38px;
    opacity: 1;
    border: 1px solid #999;
    padding: 2px;
}

/* 4. Dark Navbar */
.main-nav {
    background-color: #1a252f;
}

.main-nav .container {
    display: flex;
    justify-content: flex-start;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-right: 30px;
}

.main-nav a {
    display: block;
    padding: 12px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem; 
    font-weight: 500;
    transition: 0.2s;
    text-transform: none;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #f4f1ea; 
    text-decoration: underline !important; /* The !important ensures it overrides everything */
}

/* 5. The "Retro Box" Content Area */
.main-wrapper {
    padding: 40px 0;
}

.content-box {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 50px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.05); /* Hard shadow for retro feel */
    min-height: 400px;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #1a252f; /* Das ist deine Linie */
    display: inline-block;
    margin-bottom: 10px; /* Weniger Abstand zur Linie */
    padding-bottom: 5px;
}

/* Subtítulo (el que va debajo de la línea del h1) */
.hero-subtitle {
    display: block;
    font-weight: bold;
    font-size: 1.6rem; /* Etwas kleiner als die H1 (2.2rem) */
    color: #333;
    margin-top: 15px;
    margin-bottom: 30px; /* Abstand zum darauffolgenden Vorstellungstext */
    line-height: 1.4;
}

/* Optional: Damit die H1 auf Mobilgeräten nicht zu groß ist */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    .logo-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav li {
        margin-right: 0;
        border-bottom: 1px solid #2c3e50;
    }

    .main-wrapper {
        padding: 20px 10px; /* Less space on mobile */
    }

    .content-box {
        padding: 25px; /* Smaller padding inside the box for mobile */
    }

    h1 {
        font-size: 1.6rem;
    }
}

/* Profile Section Styling */
.profile-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.profile-photo {
    width: 250px; /* Adjust size as needed */
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
    background: #fff;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05); /* Matching retro shadow */
}

.bio-text {
    flex: 1;
}

/* Responsive adjustment for the profile */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-photo {
        margin-bottom: 20px;
        width: 200px;
    }
}


/* Service List Styling */
.service-list {
    margin: 20px 0;
    padding-left: 20px;
    list-style-type: square; /* Gives a more retro, typewriter feel */
}

.service-list li {
    margin-bottom: 10px;
}

h3 {
    margin-top: 30px;
    color: #1a252f;
    border-left: 4px solid #1a252f;
    padding-left: 15px;
}

/* FAQ Styling */
/* FAQ Styling - Acordeón Estilo Retro */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* El título de la pregunta */
.faq-item summary {
    padding: 4px 15px;
    font-style: italic;
    font-weight: bold;
    color: #1a252f;
    cursor: pointer;
    list-style: none; /* Quita flecha nativa */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px double transparent;
}

/* Flecha decorativa a la derecha */
.faq-item summary::after {
    content: "+";
    font-style: normal;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
}

/* Efecto al pasar el ratón para mejorar la usabilidad en listas largas */
.faq-item summary:hover {
    background-color: #fcfcfc;
}

/* Cambio visual cuando está abierto */
.faq-item[open] {
    margin-bottom: 15px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.faq-item[open] summary {
    border-bottom: 1px double #ddd;
    background-color: #fcfcfc;
}

.faq-item[open] summary::after {
    content: "−"; /* Signo de menos al abrir */
}

/* Contenedor de la respuesta */
.answer {
    padding: 12px 15px;
    background-color: #ffffff;
    line-height: 1.7;
}

.answer p {
    margin: 0;
}

/* Quitar el marcador por defecto en Safari/Chrome */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* 7. Footer Styling - ACTUALIZADO */
footer {
    background-color: #f0ede5; 
    border-top: 1px solid #ccc;
    padding: 30px 0;
    margin-top: 50px;
    color: #555;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    flex: 1;
}

.footer-links a {
    color: #1a252f;
    text-decoration: none;
    margin-right: 20px; /* Cambiado de margin-left a margin-right */
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-badge {
    text-align: center;
    border-left: 1px solid #ccc; /* Línea divisoria retro */
    padding-left: 30px;
}

.bdue-logo {
    height: 55px;
    width: auto;
    filter: none;
}

.bdue-logo:hover {
    filter: none;
}

.footer-badge p {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    text-transform: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0px;
}

/* 8. Responsividad Footer y Pilares */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-badge {
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed #ccc;
        padding-top: 20px;
        width: 100%;
    }

    .services-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* 9. Estilo para los tres pilares (Home) - VERSIÓN FINAL CORREGIDA */
.services-grid {
    display: flex;
    gap: 0;
    margin: 40px 0;
    border-top: 1px double #ccc;
    border-bottom: 1px double #ccc;
    padding: 30px 0;
}

.service-column {
    flex: 1;
    padding: 0 25px;
    border-right: 1px solid #ccc; 
}

.service-column:last-child {
    border-right: none; 
}

/* Aquí corregimos los dos problemas de los títulos */
.service-column h3 {
    /* 1. Quitamos la línea gruesa lateral que heredaba de tu CSS general */
    border-left: none !important; 
    padding-left: 0 !important;
    
    /* 2. Alineación y estilo */
    font-size: 1.25rem;
    color: #1a252f;
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* 3. Altura fija para que las líneas de abajo coincidan */
    height: 4rem; /* Altura fija idéntica para los tres */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    
    /* 4. Línea inferior decorativa */
    border-bottom: 1px solid #1a252f; 
    margin-bottom: 15px;
    padding-bottom: 5px; /* Añade un pequeño respiro entre el texto y la línea */
}

.service-column p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    hyphens: auto;          /* Divide las palabras largas con guiones */
         -webkit-hyphens: auto;  /* Para compatibilidad con Safari/Chrome */
         -ms-hyphens: auto;      /* Para versiones antiguas de Edge */
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        border-bottom: none;
    }

    .service-column {
        padding: 20px 0;
        border-right: none;
        border-bottom: 1px dashed #ccc;
    }
    
    .service-column h3 {
        height: auto;
	min-height: 0;
        padding-bottom: 10px;
    }

    .service-column:last-child {
        border-bottom: none;
    }
}