/* CSS puente: hace que los wrappers de Elementor sean transparentes al diseño original */

/* Resetear padding/margin de secciones Elementor para que las clases originales controlen */
.elementor-section.elementor-top-section {
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-column.elementor-top-column {
    padding: 0 !important;
    margin: 0 !important;
}

/* El widget container debe ser transparente */
.elementor-widget-text-editor .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Las clases originales deben controlar el padding de las secciones */
.elementor-section.hero {
    background: #fff;
    color: #0b2747;
    padding: 4rem 1.5rem;
}

.elementor-section.stats-bar {
    background: #0b2747;
    padding: 2rem 1.5rem;
}

.elementor-section.stats-bar .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.elementor-section.stats-bar .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.elementor-section.stats-bar .stat-item i,
.elementor-section.stats-bar .stat-item .fa {
    color: #d6a634 !important;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.elementor-section.stats-bar .stat-item span {
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .elementor-section.stats-bar .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.elementor-section.what-we-do {
    background: #f5f6f9;
    padding: 4rem 1.5rem;
    text-align: center;
}

.what-we-do .what-title {
    font-size: 1.8rem;
    color: #0b2747;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.what-we-do .what-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #d6a634;
    margin: 0.5rem auto 0;
}

.what-we-do .what-subtitle {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.what-we-do .what-grid-6 {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.what-we-do .what-card-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.what-we-do .what-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #0b2747;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: #fff;
}

.what-we-do .what-icon-circle.what-icon-gold {
    border-color: #d6a634;
}

.what-we-do .what-icon-circle i,
.what-we-do .what-icon-circle .fa {
    font-size: 1.4rem;
    color: #0b2747;
}

.what-we-do .what-icon-circle.what-icon-gold i,
.what-we-do .what-icon-circle.what-icon-gold .fa {
    color: #d6a634;
}

.what-we-do .what-card-6 h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0b2747;
    margin: 0 0 0.5rem;
}

.what-we-do .what-card-6 h3.what-title-gold {
    color: #d6a634;
}

.what-we-do .what-card-6 p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .what-we-do .what-grid-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .what-we-do .what-grid-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Áreas de enfoque */
.areas-section {
    background: #fff;
    padding: 3rem 1.5rem 4rem;
}

.areas-section .areas-title {
    text-align: center;
    font-size: 1.7rem;
    color: #0b2747;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.areas-section .areas-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #d6a634;
    margin: 0.5rem auto 2rem;
}

.areas-section .areas-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.areas-section .area-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 4px 16px rgba(11,39,71,0.12);
}

.areas-section .area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.areas-section .area-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11,39,71,0.88);
    padding: 0.6rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.areas-section .area-card-label i {
    color: #d6a634;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.areas-section .area-card-label span {
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .areas-section .areas-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .areas-section .areas-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.elementor-section.about-section {
    background: #fff;
    padding: 5rem 1.5rem;
}

.elementor-section.about-section .value-icon i,
.elementor-section.about-section .value-icon .fa {
    color: #d6a634 !important;
    font-size: 1.6rem;
}

.elementor-section.team-section {
    background: #f0f2f7;
    padding: 10px 1.5rem;
}

/* Grid: izq blanca + der card navy */
.elementor-section.team-section .team-why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(11,39,71,0.10);
}

/* Columna izquierda — fondo blanco */
.elementor-section.team-section .team-why-left {
    background: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.elementor-section.team-section .team-why-title {
    font-size: 1.5rem;
    color: #0b2747;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.elementor-section.team-section .team-why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    text-align: left;
}

.elementor-section.team-section .team-why-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #333;
    font-size: 0.95rem;
}

.elementor-section.team-section .team-why-list li i {
    color: #d6a634;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Botón pill centrado */
.elementor-section.team-section .team-why-cta {
    width: 100%;
    display: flex;
    justify-content: center;
}

.elementor-section.team-section .btn-pill {
    display: inline-block;
    background: #0b2747;
    color: #fff !important;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.elementor-section.team-section .btn-pill:hover {
    background: #163d6e;
}

/* Columna derecha — card navy */
.elementor-section.team-section .team-director-card {
    background: #0d2d52;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
}

/* Comilla dorada — posición absoluta arriba izquierda */
.elementor-section.team-section .team-big-quote {
    font-size: 10rem;
    color: #d6a634;
    line-height: 1;
    font-family: Georgia, serif;
    position: absolute;
    top: 1.2rem;
    left: 1.8rem;
    z-index: 3;
}

/* Texto de cita — debajo de comillas (espacio para comilla absoluta) */
.elementor-section.team-section .team-director-inner {
    padding: 6rem 0 2rem 2rem;
    max-width: 58%;
    flex: 1;
}

.elementor-section.team-section .team-director-quote {
    color: #c8d5e8;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 1rem;
    text-align: left;
}

.elementor-section.team-section .team-director-quote:last-child {
    margin-bottom: 0;
}

/* Foto de Andrés: desde arriba, pegada derecha y abajo, padding-top 10px */
.elementor-section.team-section .team-director-photo {
    position: absolute;
    top: 10px;
    right: 0;
    bottom: 0;
    width: 42%;
}

.elementor-section.team-section .team-director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

@media (max-width: 768px) {
    .elementor-section.team-section .team-why-wrapper {
        grid-template-columns: 1fr;
    }
    .elementor-section.team-section .team-director-photo {
        position: relative;
        top: auto; right: auto; bottom: auto;
        width: 100%;
        height: 220px;
    }
    .elementor-section.team-section .team-director-inner {
        max-width: 100%;
    }
}

.elementor-section.training-section {
    background: #f5f6f9;
    padding: 5rem 1.5rem;
}

.elementor-section.certification-section {
    background: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
}

.elementor-section.consulting-section {
    background: #fff;
    padding: 5rem 1.5rem;
}

.elementor-section.cta-section,
.elementor-section.cta-section .elementor-widget-container,
.elementor-section.cta-section .cta-content,
.elementor-section.cta-section .cta-content h2,
.elementor-section.cta-section .cta-content p,
.elementor-section.cta-section .hero-cta {
    text-align: center !important;
    display: block;
}

.elementor-section.cta-section .hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.elementor-section.cta-section {
    background: #0b2747;
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 40px;
    margin: 4rem auto;
    max-width: 1200px;
}

.elementor-section.contact-section {
    background: #fff;
    padding: 4rem 1.5rem 5rem;
}

/* Layout contacto: texto izq + tarjeta formulario der */
.elementor-section.contact-section .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.elementor-section.contact-section .contact-copy {
    padding-top: 1rem;
}

.elementor-section.contact-section .contact-copy h2 {
    font-size: 1.8rem;
    color: #0b2747;
    margin: 0.5rem 0 1rem;
}

.elementor-section.contact-section .contact-copy p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.elementor-section.contact-section .contact-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.elementor-section.contact-section .contact-copy ul li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #333;
    font-size: 0.95rem;
}

.elementor-section.contact-section .contact-copy ul li i {
    color: #0b2747;
    width: 16px;
}

/* Tarjeta del formulario con sombra */
.elementor-section.contact-section .contact-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(11,39,71,0.12);
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .elementor-section.contact-section .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Asegurar que el container original funciona dentro de Elementor */
.elementor-widget-text-editor .elementor-widget-container .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 600px) {
    .elementor-section.hero {
        padding: 2rem 1rem;
        text-align: center;
    }
    .elementor-section.hero .hero-cta {
        justify-content: center;
    }
}
