/* Estilos base - consistentes con los anteriores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #003366;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Hero específico para Ética */
.hero-etica {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #003366;
    padding: 0 1.5rem;
    margin-bottom: 10px;
}

.hero-etica h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-etica p {
    font-size: 1.2rem;
    max-width: 800px;
    color: black;
    margin-top: 0;
}

/* Contenedor principal */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #003366;
    border-radius: 2px;
}

/* Estilos para tarjetas de ética */
.etica-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.etica-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 100%;
    padding: 2rem;
}

.etica-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 51, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #003366;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #003366;
}

.card-body {
    margin-bottom: 2rem;
}

.card-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #003366;
    flex: 1;
    min-width: 250px;
}

.detail-icon {
    color: #003366;
    font-size: 1.5rem;
    margin-top: 3px;
}

.detail-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.detail-content p {
    color: #555;
    line-height: 1.6;
}

/* Sección de Principios Éticos */
.principios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principio-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.principio-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 51, 102, 0.1);
}

.principio-icon {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 1rem;
}

.principio-item h4 {
    color: #003366;
    margin-bottom: 0.5rem;
}

.principio-item p {
    color: #555;
    font-size: 0.95rem;
}

/* Preguntas Frecuentes dentro de la tarjeta */
.faq-container-inner {
    margin-top: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h4 {
    color: #003366;
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #555;
    margin: 0;
}

/* Sección de Contacto */
.contacto-form {
    width: 100%;
}

.contacto-form h3 {
    color: #003366;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.btn-enviar {
    background: #003366;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-enviar:hover {
    background: #002244;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-etica h1 {
        font-size: 2.5rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-etica {
        height: 180px;
    }
    
    .hero-etica h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .detail-item {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-etica {
        height: 160px;
        margin-bottom: 5px;
    }
    
    .hero-etica h1 {
        font-size: 2rem;
    }
    
    .hero-etica p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .principios-grid {
        grid-template-columns: 1fr;
    }
}