/* ============================================================================
   CUSTOM HEADER STYLING - FRONT COMERCIALIZADORA
   Diseño profesional con fondo azul oscuro, logo y menú centrado
   ============================================================================ */

/* Header Top Navigation */
.top_nav.tp-header-menufour {
    background: #1e3a5f;
    padding: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: 80px;
    display: flex;
    align-items: center;
}

.top_nav.tp-header-menufour .container {
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    width: 100%;
}

.top_nav_wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
    gap: 0;
}

/* Logo Styling */
.top_nav_wrapper .logo {
    margin-right: 40px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

/* Main Menu Navigation */
.main_menu_nav {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    gap: 0;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
}

.main_menu_nav li {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.main_menu_nav li a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
}

.main_menu_nav li:last-child a {
    border-right: none;
}

.main_menu_nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Search Box */
.nav-search {
    margin-left: auto;
}

.widget-t-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form .input-group {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-form input[type="search"] {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form .input-group-addon {
    background: transparent;
    border: none;
    padding: 0 8px;
}

.search-form button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.search-form button:hover {
    color: #E0C282;
}

/* Hero Section Styling - Layout 50/50 */
.hero-section-image {
    position: relative;
    min-height: 600px;
    background: url('assets/images/heroSection.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-section-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-section-image img {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: 'Raleway', sans-serif;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: #ffffff;
}

.hero-button {
    background: #1e3a5f;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid #1e3a5f;
}

.hero-button::after {
    content: ' →';
    margin-left: 8px;
}

.hero-button:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Mobile Header */
@media (max-width: 1024px) {

    /* Oculta el header de escritorio en móviles para evitar doble barra/espacio negro */
    .top_nav.tp-header-menufour {
        display: none !important;
    }

    /* Muestra y fija el header móvil */
    .mobile_header.top_nav {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100%;
        background: #1e3a5f;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    }

    .mobile_header .logo_wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
    }

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

    /* Botón hamburguesa */
    #menu_toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, .25);
    }

    #menu_toggle button {
        width: 24px;
        height: 2px;
        background: #fff;
        position: relative;
        border: 0;
        outline: 0;
        padding: 0;
        cursor: pointer;
    }

    #menu_toggle button::before,
    #menu_toggle button::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: #fff;
        transition: transform .2s ease;
    }

    #menu_toggle button::before {
        top: -7px;
    }

    #menu_toggle button::after {
        top: 7px;
    }

    /* Contenedor del menú móvil (plegable) */
    .mobile_header .header_info {
        width: 100%;
        background: #1e3a5f;
    }

    .top_nav_mobile {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        background: #1e3a5f;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .top_nav_mobile.open {
        max-height: 80vh;
        overflow: auto;
    }

    .top_nav_mobile .main_menu_nav {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 8px 0;
        gap: 0;
        height: auto;
    }

    .top_nav_mobile .main_menu_nav li {
        height: auto;
    }

    .top_nav_mobile .main_menu_nav li a {
        display: block;
        color: #fff;
        padding: 14px 16px;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .15);
        font-size: 15px;
    }

    .top_nav_mobile .main_menu_nav li:first-child a {
        border-top: 0;
    }

    .header_top {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .hero-section-image {
        min-height: 500px;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 30px;
        text-align: left;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* Valores Section Styling */
.values-section {
    margin-top: 30px;
    background: #1e3a5f;
    padding: 50px 40px;
    border-radius: 8px;
}

.values-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    font-family: 'Raleway', sans-serif;
    text-align: center;
}

.values-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.values-section .col-md-6 {
    flex: 1;
    min-width: 280px;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.values-list li:last-child {
    margin-bottom: 0;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #E0C282;
    color: #1e3a5f;
    border-radius: 50%;
    margin-right: 18px;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.values-list li strong {
    color: #ffffff;
    font-weight: 700;
}

/* Servicios Section Styling */
.services-section {
    padding: 60px 40px;
    background: #ffffff;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 50px;
    gap: 40px;
    flex-wrap: wrap;
    /* Para móviles */
}

.services-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0;
    font-family: 'Raleway', sans-serif;
    flex: 1 1 40%;
}

.services-header h2 .highlight {
    color: #E0C282;
}

.services-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    flex: 1 1 55%;
    text-align: right;
    /* Alinear a la derecha como en la imagen o izquierda si se prefiere */
    text-align: left;
    /* Corrijo a izquierda según imagen */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #E0C282;
    padding: 30px;
    border-radius: 4px;
    /* Menos redondeado según imagen */
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Alinear arriba */
    gap: 20px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: #1e3a5f;
    stroke: #1e3a5f;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-text {
    flex: 1;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
}

.service-card p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Services Grid */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        /* Mantener ancho decente */
        gap: 20px;
    }

    .services-header h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .services-header p {
        text-align: left;
    }

    .services-section {
        padding: 40px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-header h2 {
        font-size: 28px;
    }
}

/* ============================================================================
   SOBRE NOSOTROS SECTION - 50/50 LAYOUT
   Texto alineado al borde izquierdo, imagen ocupando todo el lado derecho
   ============================================================================ */

/* Contenedor principal de la sección "Sobre nosotros" */
.vc_custom_1477475596931 {
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

/* Columna de texto - eliminar padding izquierdo */
.vc_custom_1477475596931 .full-img-sec {
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.vc_custom_1477475596931 .full-img-sec .vc_column-inner {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Contenido de texto - padding solo en el interior */
.full-img-sec .left-content.awsm-settings {
    padding: 60px 60px 60px 80px !important;
    background: #1e3a5f;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Título "Sobre nosotros" */
.full-img-sec .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    font-family: 'Raleway', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.full-img-sec .sec-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #E0C282;
}

/* Párrafos de texto */
.full-img-sec .left-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

/* Columna de imagen - sin padding, imagen a pantalla completa */
.vc_custom_1477475596931 .awsm-responsive {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.vc_custom_1477475596931 .awsm-responsive .vc_column-inner {
    padding: 0 !important;
    display: flex !important;
    flex: 1 !important;
    height: 100%;
}

/* Imagen ocupa todo el espacio disponible */
.vc_custom_1477475596931 .wpb_single_image {
    margin: 0 !important;
    height: 100%;
    display: flex;
    flex: 1;
}

.vc_custom_1477475596931 .wpb_single_image figure {
    margin: 0 !important;
    height: 100%;
    width: 100%;
    display: flex;
}

.vc_custom_1477475596931 .vc_single_image-wrapper {
    height: 100%;
    width: 100%;
    margin: 0 !important;
    display: flex;
}

.vc_custom_1477475596931 .vc_single_image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Valores section dentro de "Sobre nosotros" */
.full-img-sec .values-section {
    margin-top: 40px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.full-img-sec .values-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #E0C282;
    margin-bottom: 25px;
    font-family: 'Raleway', sans-serif;
    text-align: left;
}

/* Grid 2x2 para los valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.value-item .value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #E0C282;
    color: #1e3a5f;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
}

.value-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
}

.value-text strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* Responsive para "Sobre nosotros" */
@media (max-width: 1024px) {
    .full-img-sec .left-content.awsm-settings {
        padding: 40px !important;
    }

    .full-img-sec .sec-title h2 {
        font-size: 32px;
    }

    .full-img-sec .values-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .full-img-sec .left-content.awsm-settings {
        padding: 30px 20px !important;
    }

    .full-img-sec .sec-title h2 {
        font-size: 28px;
    }

    .full-img-sec .left-content p {
        font-size: 14px;
    }

    .full-img-sec .values-section {
        padding: 25px 20px;
    }

    .full-img-sec .values-section h3 {
        font-size: 20px;
    }

    /* Grid de valores en una sola columna en móvil */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .value-item .value-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .value-text {
        font-size: 14px;
    }

    /* En móvil, la imagen se apila debajo */
    .vc_custom_1477475596931 .vc_single_image-wrapper img {
        height: auto;
        min-height: 300px;
    }
}

/* ============================================
   PHILOSOPHY SECTION STYLES
   ============================================ */

.philosophy-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.philosophy-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 40px;
    font-family: 'Raleway', sans-serif;
    line-height: 1.2;
}

.philosophy-text .highlight-orange {
    color: #E0C282;
}

.philosophy-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.philosophy-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.philosophy-icon svg {
    width: 50px;
    height: 50px;
}

.philosophy-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.philosophy-text-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

.philosophy-text-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #5a6c7d;
    margin: 0;
}

.philosophy-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTACT FORM SECTION STYLES
   ============================================ */

.contact-form-section {
    background: linear-gradient(135deg, #c4a35a 0%, #8b7340 100%);
    padding: 80px 0;
}

.contact-form-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Raleway', sans-serif;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder {
    color: #999;
}

.btn-submit {
    padding: 15px 40px;
    background: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #2d5a8f;
    transform: translateX(5px);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

/* ============================================
   FOOTER SOCIAL MEDIA STYLES
   ============================================ */

.footer-social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #E0C282;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background: #E0C282;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

.social-icon i {
    line-height: 1;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
    .philosophy-text h2 {
        font-size: 36px;
    }

    .contact-form-content h2 {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row .form-group:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .philosophy-section {
        padding: 60px 0;
    }

    .philosophy-text h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .philosophy-item {
        gap: 15px;
    }

    .philosophy-icon {
        width: 50px;
        height: 50px;
    }

    .philosophy-icon svg {
        width: 28px;
        height: 28px;
    }

    .philosophy-text-content h3 {
        font-size: 18px;
    }

    .philosophy-text-content p {
        font-size: 14px;
    }

    .philosophy-image {
        margin-top: 40px;
    }

    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-content h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row .form-group:last-child {
        grid-column: span 1;
    }

    .btn-submit {
        width: 100%;
    }
}

/* ============================================
   NEW FOOTER STYLES
   ============================================ */

.footer-new {
    width: 100%;
    background: #ffffff;
    padding: 60px 0 30px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 14px;
    color: #E0C282;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.footer-contact {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: flex-end;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item svg {
    color: #E0C282;
    width: 24px;
    height: 24px;
    margin-top: 0;
    flex-shrink: 0;
    fill: currentColor;
}

.contact-item span {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright p {
    font-size: 14px;
    color: #5a6c7d;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-new {
        padding: 40px 0 20px 0;
    }

    .footer-logo img {
        max-width: 150px;
    }

    .contact-item span {
        font-size: 13px;
    }

    .footer-copyright p {
        font-size: 12px;
    }
}