/* Estilos refinados para el Hero Section con mejor distribución */

.hero {
    position: relative;
    background-color: #ffffff;
    padding: 120px 0 60px;
    overflow: hidden;
}

.container {
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-item {
    display: flex;
    align-items: center;
}

.menu-item > a {
    display: flex;
    align-items: center;
    padding: 5px;
}

.has-submenu {
    display: flex
;
    align-items: center;
    flex-direction: row;
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

/* Contenedor principal con mejor distribución */
.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Contenido textual con mejor espaciado */
.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.hero-subtitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translateY(-50%);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-accent);
    margin-bottom: 40px;
    text-align: justify;
}

/* Botones con mejor alineación */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
}

.hero-btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 84, 80, 0.2);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(12, 35, 64, 0.1);
}

/* Áreas de práctica con mejor organización */
.hero-practice-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.practice-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--gray-accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

.practice-area:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.practice-area i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Contenedor de imagen con mejor posicionamiento */
.hero-image-container {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Forma decorativa detrás de la imagen */
.hero-image-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 90%;
    background-color: rgba(0, 84, 80, 0.03);
    border-radius: 300px 300px 0 0;
    z-index: 1;
}

/* Barra de contacto rediseñada */
.contact-section {
    margin-top: 80px;
    position: relative;
    z-index: 5;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.contact-item {
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

.contact-item:hover {
    background-color: rgba(0, 84, 80, 0.03);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.contact-info {
    display: flex;
    flex-direction: row;
}

.contact-label {
    font-size: 14px;
    color: var(--gray-accent);
    margin-bottom: 5px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-value {
    color: var(--secondary-color);
}

/* Elementos decorativos sutiles */
.hero-dots {
    position: absolute;
    top: 100px;
    right: 10%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.2;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 84, 80, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}


/* Estilos responsivos mejorados */
@media (max-width: 1200px) {
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-image-container {
        height: 550px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        padding-left: 0;
    }
    
    .hero-subtitle:before {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-practice-areas {
        justify-content: center;
    }
    
    .hero-image-container {
        height: 500px;
        order: -1;
    }
    
    .hero-image-shape {
        width: 80%;
        height: 85%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item:not(:last-child):after {
        display: none;
    }
    
    .contact-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 30px;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image-container {
        height: 400px;
    }
    
    .contact-section {
        margin-top: 50px;
    }
    
    .contact-item {
        padding: 30px 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .contact-value {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-image-container {
        height: 350px;
    }
    
    .practice-area {
        width: 100%;
    }
}
